mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-27 07:54:44 +02:00
parent
fbd791e7f0
commit
134c0204f3
@ -108,6 +108,10 @@ function! s:CheckDefined(colors)
|
|||||||
" but at least this makes sure, the group will be defined
|
" but at least this makes sure, the group will be defined
|
||||||
let fg = g:airline#highlighter#normal_fg_hi
|
let fg = g:airline#highlighter#normal_fg_hi
|
||||||
let bg = synIDattr(synIDtrans(hlID('Normal')), 'bg', 'cterm')
|
let bg = synIDattr(synIDtrans(hlID('Normal')), 'bg', 'cterm')
|
||||||
|
if bg < 0
|
||||||
|
" in case there is no background color defined for Normal
|
||||||
|
let bg = a:colors[3]
|
||||||
|
endif
|
||||||
return a:colors[0:1] + [fg, bg] + [a:colors[4]]
|
return a:colors[0:1] + [fg, bg] + [a:colors[4]]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user