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:
parent
9d438d3b38
commit
4c46b5e001
@ -4495,7 +4495,7 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
|
|||||||
regsubs_T *m;
|
regsubs_T *m;
|
||||||
int **listids;
|
int **listids;
|
||||||
{
|
{
|
||||||
char_u *save_reginput = reginput;
|
int save_reginput_col = (int)(reginput - regline);
|
||||||
int save_reglnum = reglnum;
|
int save_reglnum = reglnum;
|
||||||
int save_nfa_match = nfa_match;
|
int save_nfa_match = nfa_match;
|
||||||
int save_nfa_listid = nfa_listid;
|
int save_nfa_listid = nfa_listid;
|
||||||
@ -4632,10 +4632,10 @@ recursive_regmatch(state, pim, prog, submatch, m, listids)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* restore position in input text */
|
/* restore position in input text */
|
||||||
reginput = save_reginput;
|
|
||||||
reglnum = save_reglnum;
|
reglnum = save_reglnum;
|
||||||
if (REG_MULTI)
|
if (REG_MULTI)
|
||||||
regline = reg_getline(reglnum);
|
regline = reg_getline(reglnum);
|
||||||
|
reginput = regline + save_reginput_col;
|
||||||
nfa_match = save_nfa_match;
|
nfa_match = save_nfa_match;
|
||||||
nfa_endp = save_nfa_endp;
|
nfa_endp = save_nfa_endp;
|
||||||
nfa_listid = save_nfa_listid;
|
nfa_listid = save_nfa_listid;
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1189,
|
||||||
/**/
|
/**/
|
||||||
1188,
|
1188,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user