From 9b7191d052a1c997483cb5b0da1f4e694c12676b Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Wed, 4 Sep 2013 17:16:23 +0000 Subject: [PATCH] define a new tabline group in the color palette (#212). --- autoload/airline/extensions/tabline.vim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 64fdbce..eafd4e0 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -18,11 +18,12 @@ function! airline#extensions#tabline#init(ext) endfunction function! airline#extensions#tabline#load_theme(palette) - let l:tab = get(a:palette, 'airline_tab', a:palette.normal.airline_b) - let l:tabsel = get(a:palette, 'airline_tabsel', a:palette.normal.airline_a) - let l:tabtype = get(a:palette, 'airline_tabtype', a:palette.visual.airline_a) - let l:tabfill = get(a:palette, 'airline_tabfill', a:palette.normal.airline_c) - let l:tabmod = get(a:palette, 'airline_tabmod', a:palette.insert.airline_a) + let colors = get(a:palette, 'tabline', {}) + let l:tab = get(colors, 'airline_tab', a:palette.normal.airline_b) + let l:tabsel = get(colors, 'airline_tabsel', a:palette.normal.airline_a) + let l:tabtype = get(colors, 'airline_tabtype', a:palette.visual.airline_a) + let l:tabfill = get(colors, 'airline_tabfill', a:palette.normal.airline_c) + let l:tabmod = get(colors, 'airline_tabmod', a:palette.insert.airline_a) call airline#highlighter#exec('airline_tab', l:tab) call airline#highlighter#exec('airline_tabsel', l:tabsel) call airline#highlighter#exec('airline_tabtype', l:tabtype)