Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug + patch: `zstyle ':completion:*' menu select=long-list` fails to start menu selection
- X-seq: zsh-workers 48140
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Bug + patch: `zstyle ':completion:*' menu select=long-list` fails to start menu selection
- Date: Thu, 4 Mar 2021 10:56:06 +0200
- Archived-at: <https://zsh.org/workers/48140>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CAHLkEDsQf35TbffpyPEyLWx72G8MQgfvFvynoptfGd3qQhDbbQ%40mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
Test case:
```
exec zsh -f
LISTMAX=0
setopt menucomplete
autoload -Uz compinit; compinit
zstyle ':completion:*' menu select=long-list
zsh -^D
```
Patch:
```
diff --git Completion/Base/Core/_main_complete
Completion/Base/Core/_main_complete
index 663f755..9d90b0f 100644
--- Completion/Base/Core/_main_complete
+++ Completion/Base/Core/_main_complete
@@ -244,7 +244,7 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then
_menu_style=( "$_menu_style[@]" "$_def_menu_style[@]" )
- if [[ "$compstate[list]" = *list && tmp -gt LINES &&
+ if [[ "$compstate[list]" = *list(| *) && tmp -gt LINES &&
( -n "$_menu_style[(r)select=long-list]" ||
-n "$_menu_style[(r)(yes|true|on|1)=long-list]" ) ]]; then
compstate[insert]=menu
```
Messages sorted by:
Reverse Date,
Date,
Thread,
Author