1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00

fix(tab): fix event checking

This commit is contained in:
wsdjeg 2022-04-16 23:47:24 +08:00
parent a4084690f5
commit 8ba0fda717

View File

@ -44,8 +44,7 @@ endfunction
augroup spacevim_api_vim_tab augroup spacevim_api_vim_tab
autocmd! autocmd!
autocmd TabLeave * let s:previous_tabpagenr = tabpagenr() autocmd TabLeave * let s:previous_tabpagenr = tabpagenr()
if exists('#TabClosed') if exists('##TabClosed')
" TabClosed event is added in patch-7.4.2027
autocmd TabClosed * call <SID>tab_closed_handle() autocmd TabClosed * call <SID>tab_closed_handle()
endif endif
augroup END augroup END