fixes error when colorscheme declared in gvimrc. resolves #126.

This commit is contained in:
bling 2013-08-10 11:46:12 -04:00
parent 52b4100a4f
commit cf9028df9f
1 changed files with 5 additions and 1 deletions

View File

@ -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