From 902921931e1048aacb4a256cb6ff1290ec3a5ce7 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Fri, 6 Apr 2018 02:21:20 +0200 Subject: [PATCH] Simplify airline#init#gui_mode() remove all the old code that is probably not used anymore --- autoload/airline/init.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 7fab767..73b7f55 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -158,9 +158,7 @@ function! airline#init#bootstrap() endfunction function! airline#init#gui_mode() - return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR') && !exists("+termguicolors")) - \ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ? - \ 'gui' : 'cterm' + return has('gui_running') || (has("termguicolors") && &termguicolors == 1) ? 'gui' : 'cterm' endfunction function! airline#init#sections()