aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-14 22:34:58 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-23 00:03:47 -0400
commit07a182c6b57e13e2563aef667131b976db8711cc (patch)
treeef6c3f8a6840aca6905e3f1de8c187749b486652 /src/nvim/normal.c
parenteada8f5aaae0c072571c87b6dbd3c7992541d698 (diff)
downloadrneovim-07a182c6b57e13e2563aef667131b976db8711cc.tar.gz
rneovim-07a182c6b57e13e2563aef667131b976db8711cc.tar.bz2
rneovim-07a182c6b57e13e2563aef667131b976db8711cc.zip
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. https://github.com/vim/vim/commit/06f1ed2f78c5c03af95054fc3a8665df39dec362
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 5217db5b42..ca586cca29 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -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);
}
}