summaryrefslogtreecommitdiffstats
path: root/Completion/Core
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:25:42 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-15 09:25:42 +0000
commitc98420666ca530f3d1128f5eba4e4ea87f6d942c (patch)
tree4680ac99aca7d9cb1a9b2b12f9faf0c4f3cf7b11 /Completion/Core
parentzsh-workers/9732 (diff)
downloadzsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.tar
zsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.tar.gz
zsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.tar.bz2
zsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.tar.lz
zsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.tar.xz
zsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.tar.zst
zsh-c98420666ca530f3d1128f5eba4e4ea87f6d942c.zip
zsh-workers/9733
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_main_complete9
-rw-r--r--Completion/Core/_setup10
2 files changed, 15 insertions, 4 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index 62ba446b0..3f71e2554 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -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.
diff --git a/Completion/Core/_setup b/Completion/Core/_setup
index 4c45cc271..408b5abfe 100644
--- a/Completion/Core/_setup
+++ b/Completion/Core/_setup
@@ -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