zsh: backport https://zsh.org/workers/50325
This commit is contained in:
parent
255b8695a8
commit
2f8693cbc6
1 changed files with 31 additions and 0 deletions
31
srcpkgs/zsh/patches/50325.patch
Normal file
31
srcpkgs/zsh/patches/50325.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
Author: Bart Schaefer <schaefer@zsh.org>
|
||||
Date: Fri Jun 3 20:08:15 2022 -0700
|
||||
|
||||
50325: revert 38150 and fix in calling function cfp_matcher_range() instead
|
||||
|
||||
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.
|
||||
*/
|
||||
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
|
||||
index 59abb4cc4..77ccdebf7 100644
|
||||
--- a/Src/Zle/computil.c
|
||||
+++ b/Src/Zle/computil.c
|
||||
@@ -4383,7 +4383,7 @@ cfp_matcher_range(Cmatcher *ms, char *add)
|
||||
* word pattern.
|
||||
*/
|
||||
if ((ind = pattern_match_equivalence
|
||||
- (m->word, ind, mt, addc)) != CHR_INVALID) {
|
||||
+ (m->word, ind+1, mt, addc)) != CHR_INVALID) {
|
||||
if (ret) {
|
||||
if (imeta(ind)) {
|
||||
*p++ = Meta;
|
Loading…
Add table
Reference in a new issue