summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-18 22:41:03 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-18 22:41:03 +0200
commit06f1ed2f78c5c03af95054fc3a8665df39dec362 (patch)
tree413bd7310eafa3df68daf706d304ce4ae452b311 /src/normal.c
parent0946326580e6f034fe2c88d041407ea0fde980ab (diff)
downloadvim-git-06f1ed2f78c5c03af95054fc3a8665df39dec362.tar.gz
patch 8.0.0647: syntax highlighting can make cause a freezev8.0.0647
Problem: Syntax highlighting can make cause a freeze. Solution: Apply 'redrawtime' to syntax highlighting, per window.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 74a5efec9..fe1a1829f 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5477,6 +5477,14 @@ nv_clear(cmdarg_T *cap)
#ifdef FEAT_SYN_HL
/* Clear all syntax states to force resyncing. */
syn_stack_free_all(curwin->w_s);
+# ifdef FEAT_RELTIME
+ {
+ win_T *wp;
+
+ FOR_ALL_WINDOWS(wp)
+ wp->w_s->b_syn_slow = FALSE;
+ }
+# endif
#endif
redraw_later(CLEAR);
}