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

PATCH: small fix for compadd -X



While playing with this I discovered that matches added with `compadd' 
without a `-X' got counted to the last `-X' that was used.

Bye
 Sven

--- os/Zle/zle_tricky.c	Wed Mar  3 11:46:45 1999
+++ Src/Zle/zle_tricky.c	Wed Mar  3 12:34:24 1999
@@ -4302,7 +4302,7 @@
 		cm->rems = rems;
 		addlinknode(l, cm);
 
-		if (expl) {
+		if (exp) {
 		    if (l == matches)
 			expl->count++;
 		    else

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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