Christian Brabandt wrote:
> On Do, 16 Jun 2016, fritzophrenic wrote:
>
> > > Can you please set verbose before searching?
> >
> > I did "gvim -N -u NONE -i NONE" then ":set verbose=15". Searching for
> > "\%(|\u.*\)\@<=[^|\t]\+$" in a long line with no uppercase characters still
> > matches, and I get no messages at all.
> >
> > > I wonder if this happens, because the NFA engine stops because it returns
> > > NFA_TOO_EXPENSIVE and then the retry with the old engine is somehow
> > > confused?
> >
> > I don't think so (and I guess I proved it with the verbose setting, unless
> > I did that wrong), because I can force the new engine with \%#=2 or by
> > setting 'regexpengine', and the pattern works as expected.
>
> Okay, I checked the problem. My suspicion was correct, that patch
> 7.4.494 causes this problem, because after recursive_regmatch() returns
> NFA_TOO_EXPENSIVE nfa_listid will be restored from save_nfa_listid and
> then the exit condition in nfa_regmatch does not match anymore.
>
> Attached is a patch, including a test.
> (attachment won't be visible in github, see the thread
> https://groups.google.com/d/msg/vim_dev/BE0ISqcD3aI/ZGeOMrFQJgAJ for the
> patch)
Glad you could locate and fix it!
--
hundred-and-one symptoms of being an internet addict:
163. You go outside for the fresh air (at -30 degrees) but open the
window first to hear new mail arrive.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.