1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:50:04 +08:00

Fix unknown option name: termguicolors

close #725
This commit is contained in:
wsdjeg 2017-07-15 05:24:39 +08:00
parent 4703989921
commit e5f6b527b4
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ function! s:self.hide_in_normal(name) abort
if empty(group)
return
endif
if &termguicolors || has('gui_running')
if (exists('+termguicolors') && &termguicolors ) || has('gui_running')
let bg = self.group2dict('Normal').guibg
if empty(bg)
return

View File

@ -169,7 +169,7 @@ function! s:toggle_end_of_buffer() abort
endif
let s:ebflag = 1
else
if &termguicolors || has('gui_running')
if (exists('+termguicolors') && &termguicolors) || has('gui_running')
let normalbg = s:HI.group2dict('Normal').guibg
else
let normalbg = s:HI.group2dict('Normal').ctermbg