Check, that fg color can't be negative
This commit is contained in:
parent
ba7d8c59f7
commit
17d2db93fd
@ -95,7 +95,7 @@ function! s:CheckDefined(colors)
|
|||||||
if !exists("g:airline#highlighter#normal_fg_hi")
|
if !exists("g:airline#highlighter#normal_fg_hi")
|
||||||
let g:airline#highlighter#normal_fg_hi = synIDattr(synIDtrans(hlID('Normal')), 'fg', 'cterm')
|
let g:airline#highlighter#normal_fg_hi = synIDattr(synIDtrans(hlID('Normal')), 'fg', 'cterm')
|
||||||
endif
|
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
|
return a:colors
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user