Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Fix the objects b and B matching in doc



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



Messages sorted by: Reverse Date, Date, Thread, Author