Simplify airline#init#gui_mode()
remove all the old code that is probably not used anymore
This commit is contained in:
parent
ae394294c3
commit
902921931e
@ -158,9 +158,7 @@ function! airline#init#bootstrap()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#init#gui_mode()
|
function! airline#init#gui_mode()
|
||||||
return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR') && !exists("+termguicolors"))
|
return has('gui_running') || (has("termguicolors") && &termguicolors == 1) ? 'gui' : 'cterm'
|
||||||
\ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ?
|
|
||||||
\ 'gui' : 'cterm'
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#init#sections()
|
function! airline#init#sections()
|
||||||
|
Loading…
Reference in New Issue
Block a user