Check, that fg color can't be negative

This commit is contained in:
Christian Brabandt 2017-03-13 18:50:19 +01:00
parent ba7d8c59f7
commit 17d2db93fd
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -95,7 +95,7 @@ function! s:CheckDefined(colors)
if !exists("g:airline#highlighter#normal_fg_hi")
let g:airline#highlighter#normal_fg_hi = synIDattr(synIDtrans(hlID('Normal')), 'fg', 'cterm')
endif
if empty(g:airline#highlighter#normal_fg_hi)
if empty(g:airline#highlighter#normal_fg_hi) || g:airline#highlighter#normal_fg_hi < 0
return a:colors
endif