diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_main_complete | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index 260e5b63f..bb10706d8 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -159,9 +159,9 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then _menu_style=( "$_menu_style[@]" "$_def_menu_style[@]" ) - if [[ -z "$compstate[insert]" ]]; then - [[ -n "$_menu_style[(r)select=long-list]" && tmp -gt LINES ]] && - compstate[insert]=menu + if [[ "$compstate[list]" = *list && + -n "$_menu_style[(r)select=long-list]" && tmp -gt LINES ]]; then + compstate[insert]=menu elif [[ "$compstate[insert]" = "$_saved_insert" ]]; then if [[ -n "$_menu_style[(r)select=long]" && tmp -gt LINES ]]; then compstate[insert]=menu @@ -185,7 +185,7 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then compstate[insert]=unambiguous fi fi -set -x + if [[ "$compstate[insert]" = *menu* ]]; then if [[ -n "$_menu_style[(r)no-select*]" ]]; then unset MENUSELECT |