diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-22 12:22:48 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-22 12:22:48 +0000 |
commit | 57658af8a516811b6bada66ee247a570213ae06d (patch) | |
tree | d8eb1b7b79b9e221dff43acf89e5997f6ac60d4f /Completion/Core | |
parent | fa50c700002bb5904a814004e8435103406dc654 (diff) | |
download | zsh-57658af8a516811b6bada66ee247a570213ae06d.tar.gz zsh-57658af8a516811b6bada66ee247a570213ae06d.tar.xz zsh-57658af8a516811b6bada66ee247a570213ae06d.zip |
fix for select-long-list in menu style (11497)
Diffstat (limited to 'Completion/Core')
-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 |