diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index c239ffc..b42fb86 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -101,8 +101,8 @@ function! airline#init#bootstrap() endfunction function! airline#init#gui_mode() - return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR')) - \ || has('gui_running') || (has("termtruecolor") && &guicolors == 1)) ? + return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR') && !exists("+termguicolors")) + \ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ? \ 'gui' : 'cterm' endfunction