commit | a50d02d98350a5d876ff0521ad87f3930cf63b5c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 16 15:43:50 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 16 15:43:50 2013 +0200 |
tree | 682c4be736a0a1518bec5218181a2ac3d11f8b24 | |
parent | 5ab9d98b9a5d3ccc0353a685d9a115058e53f6cf [diff] [blame] |
updated for version 7.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.
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 5414465..47d7030 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c
@@ -4210,6 +4210,8 @@ /* 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 */