mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
fix(syntax.c): correct hunk from Vim patch 8.0.0647 (#17761)
This commit is contained in:
@@ -2623,9 +2623,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
||||
}
|
||||
next_search_hl(wp, shl, lnum, (colnr_T)v,
|
||||
shl == &search_hl ? NULL : cur);
|
||||
if (wp->w_s->b_syn_slow) {
|
||||
has_syntax = false;
|
||||
}
|
||||
|
||||
// Need to get the line again, a multi-line regexp may have made it
|
||||
// invalid.
|
||||
@@ -3383,6 +3380,10 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
||||
did_emsg = save_did_emsg;
|
||||
}
|
||||
|
||||
if (wp->w_s->b_syn_slow) {
|
||||
has_syntax = false;
|
||||
}
|
||||
|
||||
// Need to get the line again, a multi-line regexp may
|
||||
// have made it invalid.
|
||||
line = ml_get_buf(wp->w_buffer, lnum, false);
|
||||
|
Reference in New Issue
Block a user