From 78c93e4b6a87720a50ac14c40aa077ed6b86145b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 5 Sep 2013 16:05:36 +0200 Subject: 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. --- src/regexp_nfa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/regexp_nfa.c') diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 5288eb6d3..fe1d02582 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -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: -- cgit v1.2.1