Skip to content

Commit d2f0cfa

Browse files
committed
updated for version 7.3.1189
Problem: Highlighting is still wrong sometimes. (Dominique Pelle) Solution: Also restore reginput properly.
1 parent dfbbf05 commit d2f0cfa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/regexp_nfa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,7 +4495,7 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
44954495
regsubs_T *m;
44964496
int **listids;
44974497
{
4498-
char_u *save_reginput = reginput;
4498+
int save_reginput_col = (int)(reginput - regline);
44994499
int save_reglnum = reglnum;
45004500
int save_nfa_match = nfa_match;
45014501
int save_nfa_listid = nfa_listid;
@@ -4632,10 +4632,10 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
46324632
}
46334633

46344634
/* restore position in input text */
4635-
reginput = save_reginput;
46364635
reglnum = save_reglnum;
46374636
if (REG_MULTI)
46384637
regline = reg_getline(reglnum);
4638+
reginput = regline + save_reginput_col;
46394639
nfa_match = save_nfa_match;
46404640
nfa_endp = save_nfa_endp;
46414641
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+
1189,
731733
/**/
732734
1188,
733735
/**/

0 commit comments

Comments
 (0)