about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-17 19:12:51 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-17 19:12:51 +0000
commitde70d0661cfef1b93cefc7af553587e27fc6bcf6 (patch)
treee36004c6aef06fc4150523e0111ecc9901e26be6
parentefae41548c3619a1400d39ea2a115dcecd0168ae (diff)
downloadzsh-de70d0661cfef1b93cefc7af553587e27fc6bcf6.tar.gz
zsh-de70d0661cfef1b93cefc7af553587e27fc6bcf6.tar.xz
zsh-de70d0661cfef1b93cefc7af553587e27fc6bcf6.zip
zsh-workers/10159
-rw-r--r--Src/Zle/compresult.c5
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++;
 	}
     }