diff --git a/autoload/airline.vim b/autoload/airline.vim index 81e5670..777b2d7 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -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') diff --git a/autoload/airline/builder.vim b/autoload/airline/builder.vim index 2e8226d..0cba446 100644 --- a/autoload/airline/builder.vim +++ b/autoload/airline/builder.vim @@ -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