diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/compmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index cd77450cd..ec856041f 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -1660,7 +1660,7 @@ sub_match(Cmdata md, char *str, int len, int sfx) if (cnt != (size_t)-2) break; } - if (cnt == (size_t)-1) { + if (cnt == (size_t)-1 || cnt == (size_t)-2) { /* not a valid character, give up test */ break; } |