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

PATCH: small completion matching fix



With `compctl -M "r:|-=*"' the string `f--' didn't match `f-oo-bar'
because the code avoided re-using a matching spec if it didn't match
anything (to avoid infinite recursion). This is still important to
have, but the test was wrong because the length of the matched anchor
wasn't taken into account.

Bye
 Sven

diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c	Wed May 19 20:23:33 1999
+++ Src/Zle/zle_tricky.c	Fri May 21 23:44:01 1999
@@ -2327,7 +2327,7 @@
 		    }
 		    ow = w;
 
-		    if (!ict)
+		    if (!llen && !alen)
 			lm = mp;
 		    else
 			lm = NULL;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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