aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
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/buffer_defs.h
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/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 2e6f24d9c4..28f3889dd3 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -391,6 +391,7 @@ typedef struct {
hashtab_T b_keywtab; /* syntax keywords hash table */
hashtab_T b_keywtab_ic; /* idem, ignore case */
int b_syn_error; /* TRUE when error occurred in HL */
+ bool b_syn_slow; // true when 'redrawtime' reached
int b_syn_ic; /* ignore case for :syn cmds */
int b_syn_spell; /* SYNSPL_ values */
garray_T b_syn_patterns; /* table for syntax patterns */