Remove space-padding works outside of get_section.

This commit is contained in:
bootleq 2013-08-03 10:00:56 +08:00
parent 5ebb0daf93
commit 410792ed48
1 changed files with 6 additions and 6 deletions

View File

@ -109,15 +109,15 @@ function! s:get_statusline(winnr, active)
let sl = '%{airline#update_highlight()}'
if a:active || s:getwinvar(a:winnr, 'airline_left_only', 0)
let sl.=l:mode_color.' '.s:get_section(a:winnr, 'a').' '
let sl.=l:mode_color.s:get_section(a:winnr, 'a')
let sl.='%{g:airline_detect_paste && &paste ? g:airline_paste_symbol." " : ""}'
let sl.=l:mode_sep_color
let sl.=a:active ? g:airline_left_sep : g:airline_left_alt_sep
let sl.=l:info_color
let sl.=' '.s:get_section(a:winnr, 'b').' '
let sl.=s:get_section(a:winnr, 'b')
let sl.=l:info_sep_color
let sl.=g:airline_left_sep
let sl.=l:status_color.' %<'.s:get_section(a:winnr, 'c').' '
let sl.=l:status_color.s:get_section(a:winnr, 'c', ' %<')
let gutter = s:getwinvar(a:winnr, 'airline_section_gutter', get(g:, 'airline_section_gutter', ''))
let sl.=gutter != ''
\ ? gutter
@ -127,15 +127,15 @@ function! s:get_statusline(winnr, active)
endif
if !s:getwinvar(a:winnr, 'airline_left_only', 0)
let sl.='%='
let sl.=' '.s:get_section(a:winnr, 'x').' '
let sl.=s:get_section(a:winnr, 'x')
let sl.=l:info_sep_color
let sl.=a:active ? g:airline_right_sep : g:airline_right_alt_sep
let sl.=l:info_color
let sl.=' '.s:get_section(a:winnr, 'y').' '
let sl.=s:get_section(a:winnr, 'y')
let sl.=l:mode_sep_color
let sl.=a:active ? g:airline_right_sep : g:airline_right_alt_sep
let sl.=l:mode_color
let sl.=' '.s:get_section(a:winnr, 'z').' '
let sl.=s:get_section(a:winnr, 'z')
endif
return sl
endfunction