1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00

Update statusline when write file

This commit is contained in:
Shidong Wang 2018-12-30 10:15:51 +08:00
parent e7cc721d5c
commit e43000775c

View File

@ -456,7 +456,7 @@ endfunction
function! SpaceVim#layers#core#statusline#init() abort
augroup SpaceVim_statusline
autocmd!
autocmd BufWinEnter,WinEnter,FileType
autocmd BufWinEnter,WinEnter,FileType,BufWritePost
\ * let &l:statusline = SpaceVim#layers#core#statusline#get(1)
autocmd WinLeave * call SpaceVim#layers#core#statusline#remove_section('search status')
autocmd BufWinLeave,WinLeave * let &l:statusline = SpaceVim#layers#core#statusline#get()