about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorm0viefreak <m0viefreak.cm@googlemail.com>2021-12-24 13:09:25 -0800
committerBart Schaefer <schaefer@ipost.com>2021-12-24 13:09:25 -0800
commitd82604843bf2b743e04666d4644dd109831252f7 (patch)
tree21f6079737718bd23a0c2587beb6590ed085052f /Src
parent7f240e6aa9f5596a129474ba6294875dfe7ae264 (diff)
downloadzsh-d82604843bf2b743e04666d4644dd109831252f7.tar.gz
zsh-d82604843bf2b743e04666d4644dd109831252f7.tar.xz
zsh-d82604843bf2b743e04666d4644dd109831252f7.zip
38150: fix off-by-one error in matcher spec parsing
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compmatch.c2
1 files changed, 1 insertions, 1 deletions
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.
 	 */