1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 15:39:09 +08:00

Open startify after closing last buffer

close https://github.com/SpaceVim/SpaceVim/issues/3988
This commit is contained in:
Shidong Wang 2021-02-13 23:14:38 +08:00
parent 421c059d14
commit a34c156fe4

View File

@ -193,6 +193,9 @@ function! SpaceVim#mapping#close_current_buffer(...) abort
exe cmd_close_buf . bn
else
exe cmd_close_buf . bn
if exists(':Startify') ==# 2
Startify
endif
endif
elseif index > 0
if index + 1 == len(buffers)