fix termguicolors detection

This commit is contained in:
itchyny
2018-09-01 22:49:40 +09:00
parent a9fa4ae312
commit 166f179cf8

View File

@@ -2,7 +2,7 @@
" Filename: autoload/lightline/colorscheme.vim
" Author: itchyny
" License: MIT License
" Last Change: 2017/11/29 12:54:05.
" Last Change: 2018/09/01 22:48:24.
" =============================================================================
let s:save_cpo = &cpo
@@ -224,7 +224,7 @@ function! lightline#colorscheme#flatten(p) abort
return a:p
endfunction
if has('gui_running') || ( has('nvim') && &termguicolors )
if has('gui_running') || (has('termguicolors') && &termguicolors)
function! lightline#colorscheme#background() abort
return &background
endfunction