do not overwrite when left only

This commit is contained in:
Bailey Ling 2013-08-06 03:33:25 +00:00
parent 48f0e3652c
commit 98f3d13705
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,9 @@
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#branch#apply()
if exists('w:airline_left_only')
return
endif
let w:airline_section_b =
\ exists('*fugitive#head') && strlen(fugitive#head()) > 0
\ ? g:airline_branch_prefix.fugitive#head()

View File

@ -2,6 +2,9 @@
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#bufferline#apply()
if exists('w:airline_left_only')
return
endif
let w:airline_section_c = '%{bufferline#refresh_status()}'.bufferline#get_status_string()
endfunction