summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-08-14 13:34:25 +0200
committerBram Moolenaar <Bram@vim.org>2013-08-14 13:34:25 +0200
commit3f0df06c2860788c6591b03e38b7dcd5bcfd27a6 (patch)
tree4dd7a840e3f6ec5ce405a35c409e8f05b492d739 /src/regexp_nfa.c
parent1cfad52a03dc391435d32ad49b2ebb9eeb0df841 (diff)
downloadvim-git-3f0df06c2860788c6591b03e38b7dcd5bcfd27a6.tar.gz
updated for version 7.4.002v7.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.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 0e172c8ca..203d9ff64 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -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