summaryrefslogtreecommitdiffstats
path: root/Completion/Core/_main_complete
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-16 11:44:57 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-16 11:44:57 +0000
commitd658d3e2bb1cdde7a58b244fac67a539f4c1cbad (patch)
treefd352ec61b761d7eefffd70abac44e87c5aae8f5 /Completion/Core/_main_complete
parentavoid tilde- and parameter-completion in quotes (11407) (diff)
downloadzsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.tar
zsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.tar.gz
zsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.tar.bz2
zsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.tar.lz
zsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.tar.xz
zsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.tar.zst
zsh-d658d3e2bb1cdde7a58b244fac67a539f4c1cbad.zip
fixed configuration of menu-selection with menu style; pseudo-context `-command-line-', handy for completion in vared (11408)
Diffstat (limited to 'Completion/Core/_main_complete')
-rw-r--r--Completion/Core/_main_complete10
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index 34566d2d4..be96ce6f2 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -168,9 +168,11 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then
if [[ "$compstate[insert]" = *menu* ]]; then
if [[ -n "$_menu_style[(r)no-select*]" ]]; then
unset MENUSELECT
- elif [[ -n "$_menu_style[(r)select=long*]" && tmp -gt LINES ]]; then
- zmodload -i zsh/complist
- MENUSELECT=0
+ elif [[ -n "$_menu_style[(r)select=long*]" ]]; then
+ if [[ tmp -gt LINES ]]; then
+ zmodload -i zsh/complist
+ MENUSELECT=0
+ fi
else
sel=( "${(@M)_menu_style:#select*}" )
@@ -191,6 +193,8 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then
zmodload -i zsh/complist
MENUSELECT="$min"
+ else
+ unset MENUSELECT
fi
fi
fi