diff --git a/plugin/airline.vim b/plugin/airline.vim index 1635253..34870c4 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -95,6 +95,10 @@ function! s:airline_toggle() autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter') autocmd GUIEnter,ColorScheme * call on_colorscheme_changed() + if exists("##OptionSet") + " Make sure that g_airline_gui_mode is refreshed + autocmd OptionSet termguicolors call on_colorscheme_changed() + endif " Refresh airline for :syntax off autocmd SourcePre */syntax/syntax.vim \ call airline#extensions#tabline#buffers#invalidate()