Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: insert-tab pending
- X-seq: zsh-workers 14880
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: insert-tab pending
- Date: Wed, 13 Jun 2001 05:50:48 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
According to the docs, `pending' with no integer value should be the same
as `pending=1', not the same as `pending=0' (and hence not `true').
Another one that should go into 4.0.2.
Index: Completion/Base/Core/_main_complete
===================================================================
diff -c -r1.2 _main_complete
--- Completion/Base/Core/_main_complete 2001/05/30 15:57:36 1.2
+++ Completion/Base/Core/_main_complete 2001/06/13 05:47:12
@@ -35,8 +35,8 @@
zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
-if [[ "$tmp" = *pending(|[[:blank:]]*) ||
- ( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) &&
+if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
+ ( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) &&
PENDING -ge $match[1] ) ]]; then
compstate[insert]=tab
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author