diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-17 19:12:51 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-17 19:12:51 +0000 |
commit | de70d0661cfef1b93cefc7af553587e27fc6bcf6 (patch) | |
tree | e36004c6aef06fc4150523e0111ecc9901e26be6 /Src/Zle/compresult.c | |
parent | efae41548c3619a1400d39ea2a115dcecd0168ae (diff) | |
download | zsh-de70d0661cfef1b93cefc7af553587e27fc6bcf6.tar.gz zsh-de70d0661cfef1b93cefc7af553587e27fc6bcf6.tar.xz zsh-de70d0661cfef1b93cefc7af553587e27fc6bcf6.zip |
zsh-workers/10159
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r-- | Src/Zle/compresult.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 1d3ee6d27..234c8beda 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1799,9 +1799,8 @@ iprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width, nicezputs(m->str, shout); len = niceztrlen(m->str); - if (isset(LISTTYPES)) { - if (buf) - putc(file_type(buf->st_mode), shout); + if (isset(LISTTYPES) && buf) { + putc(file_type(buf->st_mode), shout); len++; } } |