Reset g_airline_gui_mode on setting termguicolors
fixes #1663, should make sure that the separators are correctly displayed even when setting 'termguicolors' later than expected.
This commit is contained in:
parent
0df2c9b12e
commit
d9acbc53b0
@ -95,6 +95,10 @@ function! s:airline_toggle()
|
||||
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
|
||||
|
||||
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
|
||||
if exists("##OptionSet")
|
||||
" Make sure that g_airline_gui_mode is refreshed
|
||||
autocmd OptionSet termguicolors call <sid>on_colorscheme_changed()
|
||||
endif
|
||||
" Refresh airline for :syntax off
|
||||
autocmd SourcePre */syntax/syntax.vim
|
||||
\ call airline#extensions#tabline#buffers#invalidate()
|
||||
|
Loading…
Reference in New Issue
Block a user