diff options
| author | rsc <devnull@localhost> | 2004-04-08 19:30:18 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-04-08 19:30:18 +0000 |
| commit | 62c141582684ff2afdaa7c8698df9f596b2d3c84 (patch) | |
| tree | 70dffb4142f241de9d91edbc81aeda836af2bd62 /src/cmd/acme/text.c | |
| parent | 7cf289ca89a7416999ae02330236042b0d37e3db (diff) | |
Let's try this - Dotfiles toggles listing of .* in directory listings.
Diffstat (limited to 'src/cmd/acme/text.c')
| -rw-r--r-- | src/cmd/acme/text.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c index 43463e95..7177127d 100644 --- a/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c @@ -224,6 +224,8 @@ textload(Text *t, uint q0, char *file, int setqid) dbuf = nil; while((n=dirread(fd, &dbuf)) > 0){ for(i=0; i<n; i++){ + if(nodotfiles && dbuf[i].name[0] == '.') + continue; dl = emalloc(sizeof(Dirlist)); j = strlen(dbuf[i].name); tmp = emalloc(j+1+1); |