From 8bc08979d73c951783642730174f8ab5f356f1d9 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 20 Aug 2013 21:27:13 +0000 Subject: [PATCH] inverse doesn't work in all environments, do it manually. --- autoload/airline/highlighter.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index 5386820..63919d0 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -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