1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 07:10:58 +02:00

zsh-workers/9733

This commit is contained in:
Tanaka Akira 2000-02-15 09:25:42 +00:00
parent 6c3be64e8d
commit c98420666c
2 changed files with 15 additions and 4 deletions

View file

@ -45,7 +45,14 @@ fi
_setup default
_def_menu_style=( "$_last_menu_style[@]"
${SELECTMIN+select${SELECTMIN:+\=$SELECTMIN}} )
# We can't really do that because the current value of $SELECTMIN
# may be the one set by this function.
# There is a similar problem with $ZLS_COLORS in _setup.
# ${SELECTMIN+select${SELECTMIN:+\=$SELECTMIN}}
)
_last_menu_style=()
# Get the names of the completers to use in the positional parameters.

View file

@ -9,9 +9,13 @@ if zstyle -a ":completion:${curcontext}:$1" list-colors val; then
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"
# Here is the problem mentioned in _main_complete.
# 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