mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 21:14:44 +08:00
branch: shorten default master for smaller windows
This commit is contained in:
@@ -95,6 +95,10 @@ function! s:update_git_branch()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let s:vcs_config['git'].branch = fugitive#head(s:sha1size)
|
let s:vcs_config['git'].branch = fugitive#head(s:sha1size)
|
||||||
|
if s:vcs_config['git'].branch is# 'master' && winwidth(0) < 81
|
||||||
|
" Shorten default a bit
|
||||||
|
let s:vcs_config['git'].branch='mas'
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:display_git_branch()
|
function! s:display_git_branch()
|
||||||
|
|||||||
Reference in New Issue
Block a user