branch: shorten default master for smaller windows

This commit is contained in:
Christian Brabandt 2018-01-05 08:12:10 +01:00
parent c76019ac9e
commit 3a2323feac
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -95,6 +95,10 @@ function! s:update_git_branch()
endif
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
function! s:display_git_branch()