use airline_c for better predicability.

This commit is contained in:
Bailey Ling 2013-09-05 20:47:38 +00:00
parent 29972ef857
commit 3c49b9cf3d
3 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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 <sid>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', '', ''))

View File

@ -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 , '' , '' ] ,
\ }