From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25771 invoked by alias); 15 Sep 2015 08:33:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36538 Received: (qmail 10693 invoked from network); 15 Sep 2015 08:33:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Helo: d03dlp03.boulder.ibm.com X-MailFrom: hanpt@linux.vnet.ibm.com X-RcptTo: zsh-workers@zsh.org Date: Tue, 15 Sep 2015 16:23:09 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: [PATCH] Fix the objects b and B matching in doc Message-ID: <20150915082309.GA7293@localhost.localdomain> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15091508-0005-0000-0000-000018087B4E >>From the example blow: ... ... To fix this, one would use ‘B:[nN][oO]=’ instead of the first part. As described above, this matches at the beginning of the trial completion, independent of other characters or substrings at the beginning of the command line word which are ignored by the same or other match-specs. and the source code, I think we need this patch. Please have a look. Thanks. --- Doc/Zsh/compwid.yo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index 40cabea..303c19d 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -899,8 +899,8 @@ var(lanchor), the var(ranchor) only needs to match the trial completion string. The tt(b) and tt(B) forms are similar to tt(l) and tt(L) with an empty -anchor, but need to match only the beginning of the trial completion -or the word on the command line, respectively. +anchor, but need to match only the beginning of the word on the command line +or trial completion, respectively. ) xitem(tt(r:)var(lpat)tt(|)var(ranchor)tt(=)var(tpat)) xitem(tt(R:)var(lpat)tt(|)var(ranchor)tt(=)var(tpat)) -- 1.9.3