Closed GoogleCodeExporter closed 9 years ago
Oh, good catch. The problem is, the is_one_char() test depends on the first
match and in your case it is not 1 char wide but more (but the actual second
match we care about, is only one char wide). So here is a patch, that checks
one more time for the width of the next match.
Original comment by chrisbr...@googlemail.com
on 8 Dec 2014 at 7:13
Attachments:
I confirm this fixes the issue. Thanks!
Original comment by fritzoph...@gmail.com
on 8 Dec 2014 at 7:30
I'm looking at the patch, and I see you adapted the reported issue for the new
test, so I'll mention now that I was able to simplify the pattern slightly. You
already had a patch before I had a chance to post it.
You can omit the "0\@!" and ygn was still grabbing too much. I.e. searching for
this failed prior to the patch:
a:\zs\d\+
That's about as simple as I could make it. FYI, in case you wanted to update
the test with a simpler pattern.
Original comment by fritzoph...@gmail.com
on 8 Dec 2014 at 7:36
Fixed by 7.4.551
Original comment by chrisbr...@googlemail.com
on 13 Dec 2014 at 10:21
Original issue reported on code.google.com by
fritzoph...@gmail.com
on 8 Dec 2014 at 5:06