From 166f179cf89320b1b6f95def3a49fda448f4f711 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 1 Sep 2018 22:49:40 +0900 Subject: [PATCH] fix termguicolors detection --- autoload/lightline/colorscheme.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lightline/colorscheme.vim b/autoload/lightline/colorscheme.vim index e450f6b..79013ff 100644 --- a/autoload/lightline/colorscheme.vim +++ b/autoload/lightline/colorscheme.vim @@ -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