update according to PR comments

This commit is contained in:
Christian Brabandt 2016-02-11 17:22:09 +01:00
parent e4ef624ea8
commit 2c5aa75d5f
2 changed files with 2 additions and 7 deletions

View File

@ -58,11 +58,6 @@ function! s:update_tabline()
endif endif
call feedkeys("\<Plug>AirlineTablineRefresh") call feedkeys("\<Plug>AirlineTablineRefresh")
call feedkeys("\<Plug>AirlineTablineRefresh") call feedkeys("\<Plug>AirlineTablineRefresh")
"call feedkeys(',,', 't')
"call feedkeys(':unmap ,,')
" force re-evaluation of tabline setting
" disable explicit redraw, may cause E315
"redraw
endfunction endfunction
function! airline#extensions#tabline#load_theme(palette) function! airline#extensions#tabline#load_theme(palette)
@ -92,8 +87,8 @@ function! airline#extensions#tabline#load_theme(palette)
call airline#highlighter#exec('airline_tabhid', l:tabhid) call airline#highlighter#exec('airline_tabhid', l:tabhid)
" Theme for tabs on the right " Theme for tabs on the right
let l:tab_right = get(colors, 'airline_tab_right', a:palette.normal.airline_b)
let l:tabsel_right = get(colors, 'airline_tabsel_right', a:palette.normal.airline_a) let l:tabsel_right = get(colors, 'airline_tabsel_right', a:palette.normal.airline_a)
let l:tab_right = get(colors, 'airline_tab_right', a:palette.inactive.airline_c)
let l:tabmod_right = get(colors, 'airline_tabmod_right', a:palette.insert.airline_a) let l:tabmod_right = get(colors, 'airline_tabmod_right', a:palette.insert.airline_a)
let l:tabhid_right = get(colors, 'airline_tabhid_right', a:palette.normal.airline_c) let l:tabhid_right = get(colors, 'airline_tabhid_right', a:palette.normal.airline_c)
if has_key(a:palette, 'normal_modified') && has_key(a:palette.normal_modified, 'airline_c') if has_key(a:palette, 'normal_modified') && has_key(a:palette.normal_modified, 'airline_c')

View File

@ -63,7 +63,7 @@ function! airline#extensions#tabline#tabs#get()
else else
let group = 'airline_tab_right' let group = 'airline_tab_right'
endif endif
call b.add_section(group, '%'.i.'Ttab '.i) call b.add_section_spaced(group, '%'.i.'Ttab '.i)
endfor endfor
call b.add_raw('%<') call b.add_raw('%<')