zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Still confused with new style names
Date: Thu, 24 Feb 2000 10:45:18 +0100 (MET)	[thread overview]
Message-ID: <200002240945.KAA10051@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Thu, 24 Feb 2000 11:28:48 +0300


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


             reply	other threads:[~2000-02-24  9:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-24  9:45 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-02-24  8:28 Andrej Borsenkow
2000-02-24  8:43 ` Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200002240945.KAA10051@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).