about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-26 14:59:22 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-26 14:59:22 +0000
commit56f338eb8bfd4bcdbf14b495ff8a34425c3527d4 (patch)
tree2699d12d058fbe4fe2513aa883f35adf64e3a04f
parent8cdb92e6c6192be5e57721151beb3198448c1367 (diff)
downloadzsh-56f338eb8bfd4bcdbf14b495ff8a34425c3527d4.tar.gz
zsh-56f338eb8bfd4bcdbf14b495ff8a34425c3527d4.tar.xz
zsh-56f338eb8bfd4bcdbf14b495ff8a34425c3527d4.zip
manual/8413
-rw-r--r--Src/Zle/complist.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 38609663a..2ffde6b48 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -346,11 +346,7 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width,
 	len = width - 2;
 	while (len-- > 0)
 	    putc(' ', shout);
-	if (mcolors.cols[COL_EC])
-	    tputs(mcolors.cols[COL_EC], 1, putshout);
-	else
-	    zcputs(&mcolors, COL_NO);
-
+	zcoff();
 	return;
     }
     m = *mp;
@@ -412,19 +408,19 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width,
 	nicezputs((m->disp ? m->disp : m->str), shout);
 	len = niceztrlen(m->disp ? m->disp : m->str);
 
-	if (isset(LISTTYPES)) {
-	    zcoff();
-	    zcputs(&mcolors, COL_TC);
-	    if (buf)
-		putc(file_type(buf->st_mode), shout);
-	    else
-		putc(' ', shout);
+        if (isset(LISTTYPES) && buf) {
+	    if (m->gnum != mselect) {
+		zcoff();
+		zcputs(&mcolors, COL_TC);
+	    }
+	    putc(file_type(buf->st_mode), shout);
 	    len++;
 	}
 	if ((len = width - len - 2) > 0) {
-	    zcoff();
-	    zcputs(&mcolors, COL_SP);
-
+	    if (m->gnum != mselect) {
+		zcoff();
+		zcputs(&mcolors, COL_SP);
+	    }
 	    while (len-- > 0)
 		putc(' ', shout);
 	}