Skip to content

Commit 8040318

Browse files
committed
updated for version 7.3.1184
Problem: Highlighting is sometimes wrong. (Axel Bender) Solution: Fetch regline again when returning from recursive regmatch.
1 parent e3554fe commit 8040318

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/regexp_nfa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,7 +4495,6 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
44954495
int **listids;
44964496
{
44974497
char_u *save_reginput = reginput;
4498-
char_u *save_regline = regline;
44994498
int save_reglnum = reglnum;
45004499
int save_nfa_match = nfa_match;
45014500
int save_nfa_listid = nfa_listid;
@@ -4633,8 +4632,9 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
46334632

46344633
/* restore position in input text */
46354634
reginput = save_reginput;
4636-
regline = save_regline;
46374635
reglnum = save_reglnum;
4636+
if (REG_MULTI)
4637+
regline = reg_getline(reglnum);
46384638
nfa_match = save_nfa_match;
46394639
nfa_endp = save_nfa_endp;
46404640
nfa_listid = save_nfa_listid;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1184,
731733
/**/
732734
1183,
733735
/**/

0 commit comments

Comments
 (0)