zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: small completion matching fix
@ 1999-05-25  7:56 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1999-05-25  7:56 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-05-25  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-25  7:56 PATCH: small completion matching fix Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).