move the main autocmd into the syntastic augroup
This commit is contained in:
parent
8e6ebec56e
commit
8491df95d6
@ -88,11 +88,12 @@ augroup syntastic
|
|||||||
if g:syntastic_echo_current_error
|
if g:syntastic_echo_current_error
|
||||||
autocmd cursormoved * call s:EchoCurrentError()
|
autocmd cursormoved * call s:EchoCurrentError()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
autocmd bufreadpost,bufwritepost * call s:UpdateErrors(1)
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|
||||||
"refresh and redraw all the error info for this buf when saving or reading
|
"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)
|
function! s:UpdateErrors(auto_invoked)
|
||||||
if &buftype == 'quickfix'
|
if &buftype == 'quickfix'
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user