The QuitPre event was added in Vim 7.3.544.

This commit is contained in:
LCD 47 2013-04-27 18:06:18 +03:00
parent c9b9a9ef5e
commit 4d694ad920

View File

@ -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