From de70d0661cfef1b93cefc7af553587e27fc6bcf6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 17 Mar 2000 19:12:51 +0000 Subject: zsh-workers/10159 --- Src/Zle/compresult.c | 5 ++--- 1 file 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++; } } -- cgit 1.4.1