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:
@@ -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
|
||||
|
Reference in New Issue
Block a user