mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-29 20:23:39 +08:00
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")
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user