mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-25 20:36:42 +08:00
better disabled highlighting for inactive windows on FocusLost
This will make sure that the current window will be highlighted as expected, even if there are no other windows and all highlighting groups will be correctly re-created as 'inactive' references #1807
This commit is contained in:
@@ -106,9 +106,7 @@ function! s:airline_toggle()
|
||||
autocmd TerminalOpen * call <sid>on_colorscheme_changed()
|
||||
endif
|
||||
" Set all statuslines to inactive
|
||||
autocmd FocusLost * if get(g:, 'airline_focuslost_inactive', 0)|
|
||||
\ call airline#update_statusline_inactive(range(1, winnr('$')))|
|
||||
\ endif
|
||||
autocmd FocusLost * call airline#update_statusline_focuslost()
|
||||
" Refresh airline for :syntax off
|
||||
autocmd SourcePre */syntax/syntax.vim
|
||||
\ call airline#extensions#tabline#buffers#invalidate()
|
||||
|
||||
Reference in New Issue
Block a user