0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.1189

Problem:    Highlighting is still wrong sometimes. (Dominique Pelle)
Solution:   Also restore reginput properly.
This commit is contained in:
Bram Moolenaar 2013-06-13 22:59:30 +02:00
parent 9d438d3b38
commit 4c46b5e001
2 changed files with 4 additions and 2 deletions

View File

@ -4495,7 +4495,7 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
regsubs_T *m;
int **listids;
{
char_u *save_reginput = reginput;
int save_reginput_col = (int)(reginput - regline);
int save_reglnum = reglnum;
int save_nfa_match = nfa_match;
int save_nfa_listid = nfa_listid;
@ -4632,10 +4632,10 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
}
/* restore position in input text */
reginput = save_reginput;
reglnum = save_reglnum;
if (REG_MULTI)
regline = reg_getline(reglnum);
reginput = regline + save_reginput_col;
nfa_match = save_nfa_match;
nfa_endp = save_nfa_endp;
nfa_listid = save_nfa_listid;

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1189,
/**/
1188,
/**/