mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
Fix Statusline of inactive windows (#1913)
* Fix inactive statusline * Fix inactive statusline
This commit is contained in:
parent
c86fc67180
commit
1c0810b613
@ -27,7 +27,6 @@ function! SpaceVim#autocmds#init() abort
|
||||
autocmd BufEnter,WinEnter,InsertLeave * setl cursorcolumn
|
||||
autocmd BufLeave,WinLeave,InsertEnter * setl nocursorcolumn
|
||||
endif
|
||||
autocmd WinLeave * call SpaceVim#layers#core#statusline#remove_section('search status')
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||||
\ exe "normal! g`\"" |
|
||||
|
@ -444,6 +444,7 @@ function! SpaceVim#layers#core#statusline#init() abort
|
||||
autocmd!
|
||||
autocmd BufWinEnter,WinEnter,FileType
|
||||
\ * 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()
|
||||
autocmd ColorScheme * call SpaceVim#layers#core#statusline#def_colors()
|
||||
augroup END
|
||||
|
Loading…
Reference in New Issue
Block a user