mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 04:34:26 +08:00
Fix old version neovim support
This commit is contained in:
@@ -101,7 +101,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'))
|
return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR') && !exists("+termguicolors"))
|
||||||
\ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ?
|
\ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ?
|
||||||
\ 'gui' : 'cterm'
|
\ 'gui' : 'cterm'
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user