diff options
Diffstat (limited to 'Completion/Core/_main_complete')
-rw-r--r-- | Completion/Core/_main_complete | 10 |
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 |