mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
fix(screen): do not update syntax_last_parsed when drawing folded line (#17826)
This commit is contained in:
@@ -1545,17 +1545,17 @@ static void win_update(win_T *wp, DecorProviders *providers)
|
|||||||
foldinfo.fi_lines ? srow : wp->w_grid.Rows,
|
foldinfo.fi_lines ? srow : wp->w_grid.Rows,
|
||||||
mod_top == 0, false, foldinfo, &line_providers);
|
mod_top == 0, false, foldinfo, &line_providers);
|
||||||
|
|
||||||
wp->w_lines[idx].wl_folded = foldinfo.fi_lines != 0;
|
if (foldinfo.fi_lines == 0) {
|
||||||
|
wp->w_lines[idx].wl_folded = false;
|
||||||
wp->w_lines[idx].wl_lastlnum = lnum;
|
wp->w_lines[idx].wl_lastlnum = lnum;
|
||||||
did_update = DID_LINE;
|
did_update = DID_LINE;
|
||||||
|
|
||||||
if (foldinfo.fi_lines > 0) {
|
|
||||||
did_update = DID_FOLD;
|
|
||||||
foldinfo.fi_lines--;
|
|
||||||
wp->w_lines[idx].wl_lastlnum = lnum + foldinfo.fi_lines;
|
|
||||||
}
|
|
||||||
|
|
||||||
syntax_last_parsed = lnum;
|
syntax_last_parsed = lnum;
|
||||||
|
} else {
|
||||||
|
foldinfo.fi_lines--;
|
||||||
|
wp->w_lines[idx].wl_folded = true;
|
||||||
|
wp->w_lines[idx].wl_lastlnum = lnum + foldinfo.fi_lines;
|
||||||
|
did_update = DID_FOLD;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wp->w_lines[idx].wl_lnum = lnum;
|
wp->w_lines[idx].wl_lnum = lnum;
|
||||||
|
Reference in New Issue
Block a user