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

Fix Statusline of inactive windows (#1913)

* Fix inactive statusline

* Fix inactive statusline
This commit is contained in:
Wang Shidong 2018-07-11 20:34:38 +08:00 committed by GitHub
parent c86fc67180
commit 1c0810b613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -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`\"" |

View File

@ -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