From f7508703d640eebc959036005bcb912aa50161ec Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Fri, 3 May 2013 09:24:34 +0300 Subject: [PATCH] Call notifiers.reset() only for enabled notifiers. --- plugin/syntastic/notifiers.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/syntastic/notifiers.vim b/plugin/syntastic/notifiers.vim index d7873a3e..5a7c8432 100644 --- a/plugin/syntastic/notifiers.vim +++ b/plugin/syntastic/notifiers.vim @@ -35,7 +35,7 @@ endfunction function! g:SyntasticNotifiers.reset(loclist) for type in self._enabled_types let class = substitute(type, '.*', 'Syntastic\u&Notifier', '') - if has_key(g:{class}, 'reset') + if has_key(g:{class}, 'reset') && (!has_key(g:{class}, 'enabled') || self._notifier[type].enabled()) call self._notifier[type].reset(a:loclist) endif endfor