mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-31 01:44:58 +02:00
do not overwrite when left only
This commit is contained in:
parent
48f0e3652c
commit
98f3d13705
@ -2,6 +2,9 @@
|
|||||||
" vim: ts=2 sts=2 sw=2 fdm=indent
|
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||||
|
|
||||||
function! airline#extensions#branch#apply()
|
function! airline#extensions#branch#apply()
|
||||||
|
if exists('w:airline_left_only')
|
||||||
|
return
|
||||||
|
endif
|
||||||
let w:airline_section_b =
|
let w:airline_section_b =
|
||||||
\ exists('*fugitive#head') && strlen(fugitive#head()) > 0
|
\ exists('*fugitive#head') && strlen(fugitive#head()) > 0
|
||||||
\ ? g:airline_branch_prefix.fugitive#head()
|
\ ? g:airline_branch_prefix.fugitive#head()
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
" vim: ts=2 sts=2 sw=2 fdm=indent
|
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||||
|
|
||||||
function! airline#extensions#bufferline#apply()
|
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()
|
let w:airline_section_c = '%{bufferline#refresh_status()}'.bufferline#get_status_string()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user