Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Still confused with new style names



Andrej Borsenkow wrote:

> This is plain dev-19. Menu select simply does not work. I tried the
> settings:
> 
> zstyle ':completion:*' menu select=0 (as I had originally)
> zstyle ':completion:*' menu select
> zstyle ':completion::*:*:*:default' menu select
> zstyle ':completion:::::default' menu select
> 
> none works. Other settings are listed here (well, you also wee all menu
> selects I tried ;-). Weird is, that list-colors do work with the same
> settings.

They should all work, the last two should be prefered, though.


The problem was that _oldlist made the old list be kept and
_main_complete didn't test that.

Bye
 Sven

diff -ru ../z.old/Completion/Core/_main_complete Completion/Core/_main_complete
--- ../z.old/Completion/Core/_main_complete	Thu Feb 24 09:54:43 2000
+++ Completion/Core/_main_complete	Thu Feb 24 10:43:49 2000
@@ -97,7 +97,8 @@
   esac
 fi
 
-if [[ -n "$tmp" || $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]]; then
+if [[ -n "$tmp" || $compstate[old_list] = keep ||
+      $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]]; then
   [[ _last_nmatches -ge 0 && _last_nmatches -ne compstate[nmatches] ]] &&
       _menu_style=( "$_last_menu_style[@]" "$_menu_style[@]" )
 
@@ -152,7 +153,7 @@
     fi
   fi
 elif [[ $compstate[nmatches]+$compstate[alternate_nmatches] -eq 0 &&
-        $#_lastdescr -ne 0 ]] &&
+        $#_lastdescr -ne 0 && $compstate[old_list] != keep ]] &&
      zstyle -s ":completion:${curcontext}:warnings" format format; then
 
   compstate[list]='list force'

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author