From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9904 invoked from network); 27 Dec 2005 05:26:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Dec 2005 05:26:20 -0000 Received: (qmail 81500 invoked from network); 27 Dec 2005 05:26:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Dec 2005 05:26:10 -0000 Received: (qmail 15322 invoked by alias); 27 Dec 2005 05:26:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22109 Received: (qmail 15313 invoked from network); 27 Dec 2005 05:26:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Dec 2005 05:26:07 -0000 Received: (qmail 81208 invoked from network); 27 Dec 2005 05:26:07 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 27 Dec 2005 05:26:05 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IS500MGE5REJT42@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 26 Dec 2005 23:26:03 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id jBR5Q1n8031421 for ; Mon, 26 Dec 2005 21:26:01 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id jBR5Q1f3031420 for zsh-workers@sunsite.dk; Mon, 26 Dec 2005 21:26:01 -0800 Date: Tue, 27 Dec 2005 05:26:01 +0000 From: Bart Schaefer Subject: Re: Strange menu selection with _arguments and matcher-list In-reply-to: <1051227002210.ZM30956@candle.brasslantern.com> To: zsh-workers@sunsite.dk Message-id: <1051227052601.ZM31419@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <1051227002210.ZM30956@candle.brasslantern.com> Comments: In reply to Bart Schaefer "Strange menu selection with _arguments and matcher-list" (Dec 27, 12:22am) 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.