diff --git a/autoload/SpaceVim/layers/core/statusline.vim b/autoload/SpaceVim/layers/core/statusline.vim index f3c099608..1b0a6c55d 100644 --- a/autoload/SpaceVim/layers/core/statusline.vim +++ b/autoload/SpaceVim/layers/core/statusline.vim @@ -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()