1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00

unset ZLS_COLORS if list-colors not set (13768)

This commit is contained in:
Sven Wischnowsky 2001-03-26 09:15:45 +00:00
parent 4e994fddce
commit f7ca3b8e17
3 changed files with 8 additions and 2 deletions

@ -1,5 +1,9 @@
2001-03-26 Sven Wischnowsky <wischnow@zsh.org>
* 13768: Completion/Core/_main_complete,
Completion/Core/_setup: unset ZLS_COLORS if list-colors not
set
* 13767: Src/Zle/zle_utils.c: avoid adding empty strings to
the kill ring

@ -302,8 +302,10 @@ fi
if [[ "$compstate[old_list]" = keep ]]; then
ZLS_COLORS="$_saved_colors"
else
elif (( $#_comp_colors )); then
ZLS_COLORS="${(j.:.)_comp_colors}"
else
unset ZLS_COLORS
fi
# Now call the post-functions.

@ -20,7 +20,7 @@ if zstyle -a ":completion:${curcontext}:$1" list-colors val; then
# ZLS_COLORS="$ZLS_COLORS$ZLS_COLOURS"
elif [[ "$1" = default ]]; then
ZLS_COLORS=
unset ZLS_COLORS
fi
if zstyle -t ":completion:${curcontext}:$1" list-packed; then