diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-16 15:43:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-16 15:43:50 +0200 |
commit | a50d02d98350a5d876ff0521ad87f3930cf63b5c (patch) | |
tree | 682c4be736a0a1518bec5218181a2ac3d11f8b24 /src/regexp_nfa.c | |
parent | 5ab9d98b9a5d3ccc0353a685d9a115058e53f6cf (diff) | |
download | vim-git-a50d02d98350a5d876ff0521ad87f3930cf63b5c.tar.gz |
updated for version 7.3.1207v7.3.1207
Problem: New regexp engine: no match found on "#if FOO". (Lech Lorens)
Solution: When adding a state gets skipped don't adjust the index.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r-- | src/regexp_nfa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 5414465b5..47d7030e5 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -4210,6 +4210,8 @@ addstate_here(l, state, subs, pim, ip) /* re-order to put the new state at the current position */ count = l->n - tlen; + if (count == 0) + return; /* no state got added */ if (count == 1) { /* overwrite the current state */ |