1
0
forked from aniani/vim

updated for version 7.4.020

Problem:    NFA engine matches too much with \@>. (John McGowan)
Solution:   When a whole pattern match is found stop searching.
This commit is contained in:
Bram Moolenaar
2013-09-05 16:05:36 +02:00
parent 00b764aa41
commit 78c93e4b6a
4 changed files with 10 additions and 1 deletions

View File

@@ -5322,7 +5322,10 @@ nfa_regmatch(prog, start, submatch, m)
log_subsexpr(m);
#endif
nfa_match = TRUE;
break;
/* See comment above at "goto nextchar". */
if (nextlist->n == 0)
clen = 0;
goto nextchar;
case NFA_START_INVISIBLE:
case NFA_START_INVISIBLE_FIRST: