inverse doesn't work in all environments, do it manually.

This commit is contained in:
Bailey Ling 2013-08-20 21:27:13 +00:00
parent 0eb6ed1109
commit 8bc08979d7
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@ function! s:exec_separator(dict, from, to, inverse)
let l:from = airline#themes#get_highlight(a:from)
let l:to = airline#themes#get_highlight(a:to)
let group = a:from.'_to_'.a:to
let colors = [ l:to[1], l:from[1], l:to[3], l:from[3], a:inverse ? 'inverse' : '' ]
if a:inverse
let colors = [ l:from[1], l:to[1], l:from[3], l:to[3] ]
else
let colors = [ l:to[1], l:from[1], l:to[3], l:from[3] ]
endif
let a:dict[group] = colors
call airline#highlighter#exec(group, colors)
endfunction