diff options
author | m0viefreak <m0viefreak.cm@googlemail.com> | 2021-12-24 13:09:25 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@ipost.com> | 2021-12-24 13:09:25 -0800 |
commit | d82604843bf2b743e04666d4644dd109831252f7 (patch) | |
tree | 21f6079737718bd23a0c2587beb6590ed085052f /Src | |
parent | 7f240e6aa9f5596a129474ba6294875dfe7ae264 (diff) | |
download | zsh-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.c | 2 |
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. */ |