From 3c49b9cf3de726a399c58233a2023b54ab93fe32 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 5 Sep 2013 20:47:38 +0000 Subject: [PATCH] use airline_c for better predicability. --- autoload/airline.vim | 6 +++--- autoload/airline/extensions/default.vim | 3 +-- autoload/airline/themes/dark.vim | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index bbea8b85..d7b2b13a 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -122,16 +122,16 @@ function! airline#check_mode(winnr) if g:airline_detect_modified if &modified call add(l:mode, 'modified') - let colors = g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_b + let colors = g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c else - let colors = g:airline#themes#{g:airline_theme}#palette.inactive.airline_b + let colors = g:airline#themes#{g:airline_theme}#palette.inactive.airline_c endif for winnr in range(1, winnr('$')) if winnr != a:winnr \ && has_key(s:contexts, winnr) \ && s:contexts[winnr].bufnr == context.bufnr - call airline#highlighter#exec('airline_b'.(context.bufnr).'_inactive', colors) + call airline#highlighter#exec('airline_c'.(context.bufnr).'_inactive', colors) endif endfor endif diff --git a/autoload/airline/extensions/default.vim b/autoload/airline/extensions/default.vim index 6829a843..db3384a5 100644 --- a/autoload/airline/extensions/default.vim +++ b/autoload/airline/extensions/default.vim @@ -48,8 +48,7 @@ function! airline#extensions#default#apply(builder, context) if airline#util#getwinvar(winnr, 'airline_render_left', active || (!active && !g:airline_inactive_collapse)) call build_sections(a:builder, a:context, s:layout[0]) else - call a:builder.add_section('airline_b'.(a:context.bufnr), ' %f%m ') - call a:builder.add_section('airline_c', '') + call a:builder.add_section('airline_c'.(a:context.bufnr), ' %f%m ') endif call a:builder.split(s:get_section(winnr, 'gutter', '', '')) diff --git a/autoload/airline/themes/dark.vim b/autoload/airline/themes/dark.vim index 71f8b6fd..62522b18 100644 --- a/autoload/airline/themes/dark.vim +++ b/autoload/airline/themes/dark.vim @@ -85,7 +85,7 @@ let s:IA2 = [ '#4e4e4e' , '#262626' , 239 , 235 , '' ] let s:IA3 = [ '#4e4e4e' , '#303030' , 239 , 236 , '' ] let g:airline#themes#dark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3, s:file) let g:airline#themes#dark#palette.inactive_modified = { - \ 'airline_b': [ '#875faf' , '' , 97 , '' , '' ] , + \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , \ }