From fc468377b8a707431357d97ff4388f360980e5bb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 3 Dec 1999 16:33:27 +0000 Subject: zsh-workers/8868 --- Src/Zle/complist.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 0d88cdc5c..00d1fb954 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -614,6 +614,8 @@ putfilecol(Listcols c, char *group, char *n, mode_t m) return 0; } +static Cmgroup last_group; + static void clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width, char *path, struct stat *buf) @@ -621,8 +623,13 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width, Cmatch m; int len, subcols = 0; + if (g != last_group) + *last_cap = '\0'; + + last_group = g; + if (!mp) { - zcputs(&mcolors, g->name, COL_MI); + zcputs(&mcolors, g->name, COL_SP); len = width - 2; while (len-- > 0) putc(' ', shout); -- cgit 1.4.1