about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-24 19:35:44 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-24 19:35:44 +0000
commitb42ac7d1aa9ba1c015874c872bf3552e11f3facf (patch)
treeb49f8ae96e8aaf72ced4ce2d2f505fb346a45892
parentcd8d829898237145b1f9f1d7e93b017432887167 (diff)
downloadzsh-b42ac7d1aa9ba1c015874c872bf3552e11f3facf.tar.gz
zsh-b42ac7d1aa9ba1c015874c872bf3552e11f3facf.tar.xz
zsh-b42ac7d1aa9ba1c015874c872bf3552e11f3facf.zip
zsh-workers/8392
-rw-r--r--Src/Zle/complist.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 731c0ba72..1ff6721c8 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -401,6 +401,13 @@ 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 (m->gnum != mselect) {
+	    if (mcolors.cols[COL_EC])
+		tputs(mcolors.cols[COL_EC], 1, putshout);
+	    else
+		zcputs(&mcolors, COL_NO);
+	}
+
 	if (isset(LISTTYPES)) {
 	    if (buf)
 		putc(file_type(buf->st_mode), shout);
@@ -413,10 +420,13 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width,
 	while (len-- > 0)
 	    putc(' ', shout);
 
-	if (mcolors.cols[COL_EC])
-	    tputs(mcolors.cols[COL_EC], 1, putshout);
-	else
-	    zcputs(&mcolors, COL_NO);
+	if (m->gnum == mselect) {
+	    if (mcolors.cols[COL_EC])
+		tputs(mcolors.cols[COL_EC], 1, putshout);
+	    else
+		zcputs(&mcolors, COL_NO);
+	}
+
 	if (!lastc) {
 	    zcputs(&mcolors, COL_NO);
 	    fputs("  ", shout);