From 8491df95d6a920f72c55fd01a982b30b1281f631 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 10 Dec 2011 01:18:20 +0000 Subject: [PATCH] move the main autocmd into the syntastic augroup --- plugin/syntastic.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 3882f6ec..bf7a951c 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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