summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-09-05 16:05:36 +0200
committerBram Moolenaar <Bram@vim.org>2013-09-05 16:05:36 +0200
commit78c93e4b6a87720a50ac14c40aa077ed6b86145b (patch)
tree3e075f5c593b8503f26ddc28b51b92ea08111275 /src/regexp_nfa.c
parent00b764aa4115271aa553c8443adc6cec6859e69e (diff)
downloadvim-git-78c93e4b6a87720a50ac14c40aa077ed6b86145b.tar.gz
updated for version 7.4.020v7.4.020
Problem: NFA engine matches too much with \@>. (John McGowan) Solution: When a whole pattern match is found stop searching.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c5
1 files changed, 4 insertions, 1 deletions
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: