mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-12 13:33:50 -05:00
fix termguicolors detection
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Filename: autoload/lightline/colorscheme.vim
|
" Filename: autoload/lightline/colorscheme.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2017/11/29 12:54:05.
|
" Last Change: 2018/09/01 22:48:24.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -224,7 +224,7 @@ function! lightline#colorscheme#flatten(p) abort
|
|||||||
return a:p
|
return a:p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if has('gui_running') || ( has('nvim') && &termguicolors )
|
if has('gui_running') || (has('termguicolors') && &termguicolors)
|
||||||
function! lightline#colorscheme#background() abort
|
function! lightline#colorscheme#background() abort
|
||||||
return &background
|
return &background
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user