do not copy section_a to section_z

this allows for the line number bolding to display nicely on all themes
This commit is contained in:
Bailey Ling 2013-09-23 14:53:51 +00:00
parent e5fb2456d4
commit b07362947e
2 changed files with 4 additions and 4 deletions

View File

@ -17,9 +17,9 @@ function! airline#themes#generate_color_map(sect1, sect2, sect3, ...)
\ }) \ })
else else
call extend(palette, { call extend(palette, {
\ 'airline_x': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 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] , get(a:sect2 , 4 , '' ) ] , \ '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] , get(a:sect1 , 4 , '' ) ] , \ 'airline_z': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , '' ] ,
\ }) \ })
endif endif

View File

@ -49,7 +49,7 @@ describe 'airline'
it 'should allow users to redefine sections' it 'should allow users to redefine sections'
let g:airline_section_a = airline#section#create(['mode', 'mode']) let g:airline_section_a = airline#section#create(['mode', 'mode'])
call airline#update_statusline() 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 end
it 'should remove funcrefs properly' it 'should remove funcrefs properly'