mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch:8.0.0647: syntax highlighting can make cause a freeze
Problem: Syntax highlighting can make cause a freeze.
Solution: Apply 'redrawtime' to syntax highlighting, per window.
06f1ed2f78
This commit is contained in:
@@ -4642,6 +4642,9 @@ static void nv_clear(cmdarg_T *cap)
|
||||
if (!checkclearop(cap->oap)) {
|
||||
/* Clear all syntax states to force resyncing. */
|
||||
syn_stack_free_all(curwin->w_s);
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
wp->w_s->b_syn_slow = false;
|
||||
}
|
||||
redraw_later(CLEAR);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user