1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-23 13:41:12 +01:00

fix for list-colors handling (12107)

This commit is contained in:
Sven Wischnowsky 2000-06-28 13:59:21 +00:00
parent 45a6914ed7
commit 04bf39bf2e
3 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2000-06-28 Sven Wischnowsky <wischnow@zsh.org> 2000-06-28 Sven Wischnowsky <wischnow@zsh.org>
* 12107: Completion/Core/_setup, Src/Zle/complist.c: fix for
list-colors handling
* 12105: Completion/Core/_main_complete: reset _comp_mesg (saying * 12105: Completion/Core/_main_complete: reset _comp_mesg (saying
whether there were messages) appropriately whether there were messages) appropriately

View file

@ -10,7 +10,7 @@ if zstyle -a ":completion:${curcontext}:$1" list-colors val; then
_comp_colors=( "$val[@]" ) _comp_colors=( "$val[@]" )
else else
_comp_colors=( "$_comp_colors[@]" _comp_colors=( "$_comp_colors[@]"
"(${2})${(@)^val:#\(*\)*}" "${(M@)val:#\(*\)*}" ) "(${2})${(@)^val:#(|\(*\)*)}" "${(M@)val:#\(*\)*}" )
fi fi
# Here is the problem mentioned in _main_complete. # Here is the problem mentioned in _main_complete.

View file

@ -362,7 +362,10 @@ getcols(Listcols c)
memset(c, 0, sizeof(*c)); memset(c, 0, sizeof(*c));
s = dupstring(s); s = dupstring(s);
while (*s) while (*s)
s = getcoldef(c, s); if (*s == ':')
s++;
else
s = getcoldef(c, s);
/* Use default values for those that aren't set explicitly. */ /* Use default values for those that aren't set explicitly. */
for (i = 0; i < NUM_COLS; i++) { for (i = 0; i < NUM_COLS; i++) {