mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 04:34:26 +08:00
do not overwrite when left only
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user