fix inactive responding to modified, fix trimming

This commit is contained in:
Bailey Ling 2013-08-17 22:03:50 +00:00
parent 840f78607e
commit f938159d0d
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function! airline#get_statusline(winnr, active)
call builder.add_section('airline_a', s:get_section(a:winnr, 'a')
\ .'%{g:airline_detect_paste && &paste ? g:airline_paste_symbol." " : ""}')
call builder.add_section('airline_b', s:get_section(a:winnr, 'b'))
call builder.add_section('airline_c', s:get_section(a:winnr, 'c')
call builder.add_section('airline_c', '%<'.s:get_section(a:winnr, 'c')
\ .'%#airline_file#%{&ro ? g:airline_readonly_symbol : ""}')
else
call builder.add_section('airline_c', '%f%m')

View File

@ -26,7 +26,7 @@ function! s:prototype.build()
for section in self._sections
if section[0] == '|'
let side = 1
let line .= '%#'.prev_group.'#'.section[1]
let line .= '%#'.self._group(prev_group).'#'.section[1]
let prev_group = ''
continue
endif