diff options
| author | Peter Stephenson <pws@zsh.org> | 2015-10-27 11:54:19 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2015-10-27 11:54:19 +0000 |
| commit | b498bd7ce5b8f126f420f8f9fd4946912f8334da (patch) | |
| tree | d85eca8c5af3da0279f6e661e1534664603911e0 /Src/pattern.c | |
| parent | 36977: note about difficulties of pattern repetitions (diff) | |
| download | zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.gz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.bz2 zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.lz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.xz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.zst zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.zip | |
36982: Fix bug with (#cN) patterns and remove redundant description.
We need to restore the current count of matches when returning to
match at the point where we previously matched.
Diffstat (limited to 'Src/pattern.c')
| -rw-r--r-- | Src/pattern.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/pattern.c b/Src/pattern.c index 8b07cca92..9e8a80ae1 100644 --- a/Src/pattern.c +++ b/Src/pattern.c @@ -3376,6 +3376,7 @@ patmatch(Upat prog) scan[P_CT_CURRENT].l = cur + 1; if (patmatch(scan + P_CT_OPERAND)) return 1; + scan[P_CT_CURRENT].l = cur; patinput = patinput_thistime; } if (cur < min) |
