From e67e5998da4bb8c7b83d2499ada71ad20d7f3383 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 30 Oct 2013 07:21:46 +0200 Subject: [PATCH] Moved initialization of g:syntastic_delayed_redraws to util.vim. --- autoload/syntastic/util.vim | 4 ++++ plugin/syntastic.vim | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/autoload/syntastic/util.vim b/autoload/syntastic/util.vim index 425df2d7..10c01303 100644 --- a/autoload/syntastic/util.vim +++ b/autoload/syntastic/util.vim @@ -10,6 +10,10 @@ if !exists("g:syntastic_debug") let g:syntastic_debug = 0 endif +if !exists("g:syntastic_delayed_redraws") + let g:syntastic_delayed_redraws = 0 +endif + let s:deprecationNoticesIssued = [] let s:redraw_delayed = 0 let s:redraw_full = 0 diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index ae462b81..a9d2c00c 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -85,12 +85,6 @@ if !exists("g:syntastic_reuse_loc_lists") let g:syntastic_reuse_loc_lists = (v:version >= 704) endif -" XXX: Older Vim versions can crash if redraw is called while a popup is visible. -" This variable enables a workaround, by delaying redraws to an idle moment. -if !exists("g:syntastic_delayed_redraws") - let g:syntastic_delayed_redraws = 0 -endif - let s:registry = g:SyntasticRegistry.Instance() let s:notifiers = g:SyntasticNotifiers.Instance() let s:modemap = g:SyntasticModeMap.Instance()