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

Re: PATCH: Re: Option completion after "nono"



Slightly misplaced. Sorry.

Bye
 Sven

Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.25
diff -u -r1.25 compmatch.c
--- Src/Zle/compmatch.c	2000/10/10 08:36:34	1.25
+++ Src/Zle/compmatch.c	2000/10/10 13:34:14
@@ -843,6 +843,9 @@
 	    he = 0;
 	} else {
 
+	    if (!lw)
+		break;
+
 	    if (exact) {
 		/* If we just accepted some characters directly (at the
 		 * beginning of the loop) and now can't match any further,
@@ -858,9 +861,6 @@
 
 		goto retry;
 	    }
-
-	    if (!lw)
-		break;
 	    /* No matcher and different characters: l does not match w. */
 	    if (test)
 		return 0;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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