diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-09-05 16:05:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-09-05 16:05:36 +0200 |
commit | 78c93e4b6a87720a50ac14c40aa077ed6b86145b (patch) | |
tree | 3e075f5c593b8503f26ddc28b51b92ea08111275 /src/regexp_nfa.c | |
parent | 00b764aa4115271aa553c8443adc6cec6859e69e (diff) | |
download | vim-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.c | 5 |
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: |