Simplify airline#init#gui_mode()

remove all the old code that is probably not used anymore
This commit is contained in:
Christian Brabandt 2018-04-06 02:21:20 +02:00
parent ae394294c3
commit 902921931e
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -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()