zsh-workers
 help / color / mirror / code / Atom feed
* Bug + patch: `zstyle ':completion:*' menu select=long-list` fails to start menu selection
@ 2021-03-04  8:56 Marlon Richert
  2021-03-04 20:17 ` Daniel Shahaf
  0 siblings, 1 reply; 23+ messages in thread
From: Marlon Richert @ 2021-03-04  8:56 UTC (permalink / raw)
  To: Zsh hackers list

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
```


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-03-25  0:46 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04  8:56 Bug + patch: `zstyle ':completion:*' menu select=long-list` fails to start menu selection Marlon Richert
2021-03-04 20:17 ` Daniel Shahaf
2021-03-04 22:26   ` Marlon Richert
2021-03-07 17:22     ` Daniel Shahaf
2021-03-09 17:01       ` Marlon Richert
2021-03-09 21:19         ` Daniel Shahaf
2021-03-09 21:48         ` Bart Schaefer
2021-03-10  7:21           ` Marlon Richert
2021-03-10 18:50             ` Bart Schaefer
2021-03-11  2:17               ` Bart Schaefer
2021-03-11  7:33               ` Marlon Richert
2021-03-11 18:22                 ` Bart Schaefer
2021-03-12 13:11                 ` Marlon Richert
2021-03-12 13:36                   ` Peter Stephenson
2021-03-12 14:14                     ` Daniel Shahaf
2021-03-12 20:53                       ` Mikael Magnusson
     [not found]                       ` <884654866.425858.1615560127191@mail2.virginmedia.com>
2021-03-13 13:40                         ` Daniel Shahaf
2021-03-13 17:38                           ` Peter Stephenson
2021-03-13 18:08                             ` Bart Schaefer
2021-03-14  7:39                               ` dana
2021-03-14  9:30   ` Marlon Richert
2021-03-17 18:01     ` dana
2021-03-25  0:46       ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).