diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-24 19:35:44 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-24 19:35:44 +0000 |
commit | b42ac7d1aa9ba1c015874c872bf3552e11f3facf (patch) | |
tree | b49f8ae96e8aaf72ced4ce2d2f505fb346a45892 | |
parent | cd8d829898237145b1f9f1d7e93b017432887167 (diff) | |
download | zsh-b42ac7d1aa9ba1c015874c872bf3552e11f3facf.tar.gz zsh-b42ac7d1aa9ba1c015874c872bf3552e11f3facf.tar.xz zsh-b42ac7d1aa9ba1c015874c872bf3552e11f3facf.zip |
zsh-workers/8392
-rw-r--r-- | Src/Zle/complist.c | 18 |
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); |