fix inactive responding to modified, fix trimming
This commit is contained in:
parent
840f78607e
commit
f938159d0d
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue