diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-15 09:07:09 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-15 09:07:09 +0000 |
commit | e6cc1ece7fed93fd31ca4e7f7726de034ede887c (patch) | |
tree | 93087d3edf5eb27836ba9bbdfb687b416fb7c629 /Completion/Core/_setup | |
parent | bf990125d18effbf111fd6a30ff5bf90c4c263ae (diff) | |
download | zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.gz zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.tar.xz zsh-e6cc1ece7fed93fd31ca4e7f7726de034ede887c.zip |
zsh-workers/9731
Diffstat (limited to 'Completion/Core/_setup')
-rw-r--r-- | Completion/Core/_setup | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Core/_setup b/Completion/Core/_setup index b3b2bdb33..4c45cc271 100644 --- a/Completion/Core/_setup +++ b/Completion/Core/_setup @@ -3,12 +3,15 @@ local val nm="$compstate[nmatches]" if zstyle -a ":completion:${curcontext}:$1" list-colors val; then - zmodload -e zsh/complist || zmodload -i zsh/complist + zmodload -i zsh/complist if [[ "$1" = default ]]; then ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}" else eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\"" fi +elif [[ "$1" = default && -n "$ZLS_COLORS$ZLS_COLOURS" ]]; then + zmodload -i zsh/complist + ZLS_COLORS="$ZLS_COLORS$ZLS_COLOURS" fi if zstyle -s ":completion:${curcontext}:$1" list-packed val; then |