fixes error when colorscheme declared in gvimrc. resolves #126.
This commit is contained in:
parent
52b4100a4f
commit
cf9028df9f
@ -20,7 +20,11 @@ function! s:get_syn(group, what)
|
|||||||
let color = synIDattr(synIDtrans(hlID('Normal')), a:what)
|
let color = synIDattr(synIDtrans(hlID('Normal')), a:what)
|
||||||
endif
|
endif
|
||||||
if empty(color) || color == -1
|
if empty(color) || color == -1
|
||||||
let color = a:what ==# 'fg' ? 0 : 1
|
if has('gui_running')
|
||||||
|
let color = a:what ==# 'fg' ? '#000000' : '#FFFFFF'
|
||||||
|
else
|
||||||
|
let color = a:what ==# 'fg' ? 0 : 1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
return color
|
return color
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user