mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
fix(tab): fix event checking
This commit is contained in:
parent
a4084690f5
commit
8ba0fda717
@ -44,8 +44,7 @@ endfunction
|
||||
augroup spacevim_api_vim_tab
|
||||
autocmd!
|
||||
autocmd TabLeave * let s:previous_tabpagenr = tabpagenr()
|
||||
if exists('#TabClosed')
|
||||
" TabClosed event is added in patch-7.4.2027
|
||||
if exists('##TabClosed')
|
||||
autocmd TabClosed * call <SID>tab_closed_handle()
|
||||
endif
|
||||
augroup END
|
||||
|
Loading…
Reference in New Issue
Block a user