mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 07:31:15 +08:00
use airline_c for better predicability.
This commit is contained in:
parent
29972ef857
commit
3c49b9cf3d
|
@ -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
|
||||
|
|
|
@ -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', '', ''))
|
||||
|
|
|
@ -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 , '' , '' ] ,
|
||||
\ }
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user