From d82604843bf2b743e04666d4644dd109831252f7 Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Fri, 24 Dec 2021 13:09:25 -0800 Subject: 38150: fix off-by-one error in matcher spec parsing --- Src/Zle/compmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/compmatch.c') diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index 56e5509a4..bb8359f1d 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -1319,7 +1319,7 @@ pattern_match_equivalence(Cpattern lp, convchar_t wind, int wmtp, convchar_t lchr; int lmtp; - if (!PATMATCHINDEX(lp->u.str, wind-1, &lchr, &lmtp)) { + if (!PATMATCHINDEX(lp->u.str, wind, &lchr, &lmtp)) { /* * No equivalent. No possible match; give up. */ -- cgit 1.4.1