From bd7220cb5b19042e3f904ab8114b505b62208756 Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Sun, 29 Jun 2014 06:27:53 -0700 Subject: [PATCH] cterm=reverse not honored; only term=reverse was This patch makes Airline honor the `cterm=reverse` syntax attribute. --- autoload/airline/highlighter.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index 65a95cc..17a6cf5 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -42,7 +42,10 @@ endfunction function! airline#highlighter#get_highlight(group, ...) let fg = s:get_syn(a:group, 'fg') let bg = s:get_syn(a:group, 'bg') - let reverse = synIDattr(synIDtrans(hlID(a:group)), 'reverse', has('gui_running') ? 'gui' : 'term') + let reverse = has('gui_running') + \ ? synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'gui') + \ : synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'cterm') + \|| synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'term') return reverse ? s:get_array(bg, fg, a:000) : s:get_array(fg, bg, a:000) endfunction