diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 7df51888..d925f4a3 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -75,9 +75,15 @@ augroup syntastic " TODO: the next autocmd should be "autocmd BufWinLeave * if empty(&bt) | lclose | endif" " but in recent versions of Vim lclose can no longer be called from BufWinLeave autocmd BufEnter * call s:BufWinLeaveCleanup() - autocmd QuitPre * call g:SyntasticLoclistHide() augroup END +if v:version > 703 || (v:version == 703 && has('patch544')) + " QuitPre was added in Vim 7.3.544 + augroup syntastic + autocmd QuitPre * call g:SyntasticLoclistHide() + augroup END +endif + function! s:BufWinLeaveCleanup() " TODO: at this point there is no b:syntastic_loclist