0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2013-06-16 15:43:50 +02:00
parent 5ab9d98b9a
commit a50d02d983
4 changed files with 9 additions and 0 deletions

View File

@@ -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 */