From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25544 invoked from network); 24 Feb 2000 09:45:43 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Feb 2000 09:45:43 -0000 Received: (qmail 8234 invoked by alias); 24 Feb 2000 09:45:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9861 Received: (qmail 8226 invoked from network); 24 Feb 2000 09:45:27 -0000 Date: Thu, 24 Feb 2000 10:45:18 +0100 (MET) Message-Id: <200002240945.KAA10051@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Thu, 24 Feb 2000 11:28:48 +0300 Subject: 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@informatik.hu-berlin.de