From b1b02b29a0e56651bc28e34419e73aab06b26e54 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 9 Jul 2013 22:02:59 +0000 Subject: [PATCH] correct the truncation of the statusline such that the sides are always shown. resolves #52. --- autoload/airline.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index d1f6c446..108e8b98 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -107,7 +107,7 @@ function! airline#update_statusline(active) let sl.=' '.s:get_section('b').' ' let sl.=l:info_sep_color let sl.=g:airline_left_sep - let sl.=l:status_color.' '.s:get_section('c').' ' + let sl.=l:status_color.' %<'.s:get_section('c').' ' let sl.=exists('w:airline_section_gutter') \ ? s:get_section('gutter') \ : '%#warningmsg#'.g:airline_externals_syntastic.l:file_flag_color."%{&ro ? g:airline_readonly_symbol : ''}".l:status_color @@ -115,7 +115,7 @@ function! airline#update_statusline(active) let sl.=' %f' endif if !exists('w:airline_left_only') - let sl.='%<%= '.s:get_section('x').' ' + let sl.='%= '.s:get_section('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