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)
|
||||
endif
|
||||
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
|
||||
return color
|
||||
endfunction
|
||||
|
|
Loading…
Reference in New Issue