The QuitPre event was added in Vim 7.3.544.
This commit is contained in:
parent
c9b9a9ef5e
commit
4d694ad920
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user