Call notifiers.reset() only for enabled notifiers.

This commit is contained in:
LCD 47 2013-05-03 09:24:34 +03:00
parent 165602e572
commit f7508703d6

View File

@ -35,7 +35,7 @@ endfunction
function! g:SyntasticNotifiers.reset(loclist) function! g:SyntasticNotifiers.reset(loclist)
for type in self._enabled_types for type in self._enabled_types
let class = substitute(type, '.*', 'Syntastic\u&Notifier', '') 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) call self._notifier[type].reset(a:loclist)
endif endif
endfor endfor