move the main autocmd into the syntastic augroup

This commit is contained in:
Martin Grenfell 2011-12-10 01:18:20 +00:00
parent 8e6ebec56e
commit 8491df95d6

View File

@ -88,11 +88,12 @@ augroup syntastic
if g:syntastic_echo_current_error
autocmd cursormoved * call s:EchoCurrentError()
endif
autocmd bufreadpost,bufwritepost * call s:UpdateErrors(1)
augroup END
"refresh and redraw all the error info for this buf when saving or reading
autocmd bufreadpost,bufwritepost * call s:UpdateErrors(1)
function! s:UpdateErrors(auto_invoked)
if &buftype == 'quickfix'
return