From 2e99805dbfa5b64931be3e4fcd9797671fa30c45 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 16 Oct 2018 12:13:24 +0200 Subject: [PATCH] Fix failing test --- autoload/airline/highlighter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index 6080987..3678868 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -53,7 +53,7 @@ function! airline#highlighter#reset_hlcache() endfunction function! airline#highlighter#get_highlight(group, ...) - let reverse = g:airline_gui_mode ==# 'gui' + let reverse = get(g:, 'airline_gui_mode', '') ==# 'gui' \ ? synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'gui') \ : synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'cterm') \|| synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'term')