1
0
forked from aniani/vim

updated for version 7.4.002

Problem:    Pattern with two alternative look-behind matches does not match.
            (Amadeus Demarzi)
Solution:   When comparing PIMs also compare their state ID to see if they are
            different.
This commit is contained in:
Bram Moolenaar
2013-08-14 13:34:25 +02:00
parent 1cfad52a03
commit 3f0df06c28
4 changed files with 11 additions and 0 deletions

View File

@@ -3782,6 +3782,9 @@ pim_equal(one, two)
if (two_unused)
/* one is used and two is not: not equal */
return FALSE;
/* compare the state id */
if (one->state->id != two->state->id)
return FALSE;
/* compare the position */
if (REG_MULTI)
return one->end.pos.lnum == two->end.pos.lnum