From bd4490b966dd4c06bd1088d432418ff764552ce2 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 10 Oct 2000 13:37:30 +0000 Subject: *** empty log message *** --- Src/Zle/compmatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/Zle/compmatch.c') diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index d7a8e8e73..c43140774 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -843,6 +843,9 @@ match_str(char *l, char *w, Brinfo *bpp, int bc, int *rwlp, 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 @@ match_str(char *l, char *w, Brinfo *bpp, int bc, int *rwlp, goto retry; } - - if (!lw) - break; /* No matcher and different characters: l does not match w. */ if (test) return 0; -- cgit 1.4.1