mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
Update statusline when write file
This commit is contained in:
parent
e7cc721d5c
commit
e43000775c
@ -456,7 +456,7 @@ endfunction
|
|||||||
function! SpaceVim#layers#core#statusline#init() abort
|
function! SpaceVim#layers#core#statusline#init() abort
|
||||||
augroup SpaceVim_statusline
|
augroup SpaceVim_statusline
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinEnter,WinEnter,FileType
|
autocmd BufWinEnter,WinEnter,FileType,BufWritePost
|
||||||
\ * let &l:statusline = SpaceVim#layers#core#statusline#get(1)
|
\ * let &l:statusline = SpaceVim#layers#core#statusline#get(1)
|
||||||
autocmd WinLeave * call SpaceVim#layers#core#statusline#remove_section('search status')
|
autocmd WinLeave * call SpaceVim#layers#core#statusline#remove_section('search status')
|
||||||
autocmd BufWinLeave,WinLeave * let &l:statusline = SpaceVim#layers#core#statusline#get()
|
autocmd BufWinLeave,WinLeave * let &l:statusline = SpaceVim#layers#core#statusline#get()
|
||||||
|
Loading…
Reference in New Issue
Block a user