about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-03 16:33:27 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-03 16:33:27 +0000
commitfc468377b8a707431357d97ff4388f360980e5bb (patch)
tree9f9f8dc884c1117ef9faf613361a1651e73b5f41
parent0eebb6014cd13a1dd783b454cbeeff5e5918571e (diff)
downloadzsh-fc468377b8a707431357d97ff4388f360980e5bb.tar.gz
zsh-fc468377b8a707431357d97ff4388f360980e5bb.tar.xz
zsh-fc468377b8a707431357d97ff4388f360980e5bb.zip
zsh-workers/8868
-rw-r--r--Src/Zle/complist.c9
1 files changed, 8 insertions, 1 deletions
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);