zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Strange menu selection with _arguments and matcher-list
Date: Tue, 27 Dec 2005 05:26:01 +0000	[thread overview]
Message-ID: <1051227052601.ZM31419@candle.brasslantern.com> (raw)
In-Reply-To: <1051227002210.ZM30956@candle.brasslantern.com>

On Dec 27, 12:22am, Bart Schaefer wrote:
}
} Affects 4.2.5 and later, so it's not a multi-byte thing, but not 4.0.x.

compadd -2V is being called once for each matcher-list entry when the
_complete completer is processed, creating four separate groups of the
same completions.  That doesn't explain why the display is messed up.

Some experimentation reveals that if I omit the -R option of _arguments,
the extra calls to compadd are not made, so the odd behavior is avoided.
This must mean that sometimes [[ nm -ne "$compstate[nmatches]" ]] is true
when -R would cause a false ($? == 300) return, but I don't know why that
would change the possible matches that are added.

I still think a bug has been introduced somewhere since 4.0.x, but having
a workaround is helpful.


      reply	other threads:[~2005-12-27  5:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-27  0:22 Bart Schaefer
2005-12-27  5:26 ` Bart Schaefer [this message]

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=1051227052601.ZM31419@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).