From b07362947ebca028e60356a1fdfb62b1bd07f36a Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 23 Sep 2013 14:53:51 +0000 Subject: [PATCH] do not copy section_a to section_z this allows for the line number bolding to display nicely on all themes --- autoload/airline/themes.vim | 6 +++--- t/airline.vim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/airline/themes.vim b/autoload/airline/themes.vim index c457dde9..bfa76732 100644 --- a/autoload/airline/themes.vim +++ b/autoload/airline/themes.vim @@ -17,9 +17,9 @@ function! airline#themes#generate_color_map(sect1, sect2, sect3, ...) \ }) else call extend(palette, { - \ 'airline_x': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 4 , '' ) ] , - \ 'airline_y': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , get(a:sect2 , 4 , '' ) ] , - \ 'airline_z': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , get(a:sect1 , 4 , '' ) ] , + \ 'airline_x': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , '' ] , + \ 'airline_y': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , '' ] , + \ 'airline_z': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , '' ] , \ }) endif diff --git a/t/airline.vim b/t/airline.vim index c613ad38..78ab6d7c 100644 --- a/t/airline.vim +++ b/t/airline.vim @@ -49,7 +49,7 @@ describe 'airline' it 'should allow users to redefine sections' let g:airline_section_a = airline#section#create(['mode', 'mode']) call airline#update_statusline() - Expect airline#statusline(1) =~ '%{airline#util#wrap(airline#parts#mode(),0)}%{airline#util#wrap(airline#parts#mode(),0)}' + Expect airline#statusline(1) =~ '%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#%#airline_a_bold#%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#' end it 'should remove funcrefs properly'