1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

fix(tabline): focus redraw tabline when clear buffers

ref: https://github.com/neovim/neovim/issues/23989
This commit is contained in:
wsdjeg 2023-06-11 22:06:02 +08:00
parent 4cd290b71e
commit 4eb8490ffc

View File

@ -337,6 +337,12 @@ function! SpaceVim#mapping#clear_saved_buffers() abort
\ 'do' : 'noautocmd bd %d'
\ }
\ )
" after update to neovim 0.9.1 the tabline does not redraw when clear
" buffers.
" https://github.com/neovim/neovim/issues/23989
if exists(':redrawtabline') == 2
redrawtabline
endif
endfunction
function! SpaceVim#mapping#format() abort