summaryrefslogtreecommitdiff
path: root/Src/Zle/compmatch.c
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-06-03 20:08:15 -0700
committerBart Schaefer <schaefer@zsh.org>2022-06-03 20:08:15 -0700
commit3e3cfabcc74dc79d4d8717c4e5859d8d01be6c54 (patch)
treebcedb379eb8a3a99aec145e86ff690fd9f25084b /Src/Zle/compmatch.c
parent22b1a91c2a07e6d6a57975a1ab47d66f92aa21f2 (diff)
downloadzsh-3e3cfabcc74dc79d4d8717c4e5859d8d01be6c54.tar.gz
zsh-3e3cfabcc74dc79d4d8717c4e5859d8d01be6c54.zip
50325: revert 38150 and fix in calling function cfp_matcher_range() instead
Diffstat (limited to 'Src/Zle/compmatch.c')
-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 bb8359f1d..56e5509a4 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, &lchr, &lmtp)) {
+ if (!PATMATCHINDEX(lp->u.str, wind-1, &lchr, &lmtp)) {
/*
* No equivalent. No possible match; give up.
*/