mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-14 00:28:56 +08:00
account for possibilty of branch extension unavailable. resolves #419.
This commit is contained in:
1 parent
baed8ac063
commit
fae68dbcb7
2 files changed
+9
-6
No files matched your search
@@ -47,7 +47,6 @@ function! airline#extensions#branch#get_head()
|
||||
let empty_message = get(g:, 'airline#extensions#branch#empty_message',
|
||||
\ get(g:, 'airline_branch_empty_message', ''))
|
||||
let symbol = get(g:, 'airline#extensions#branch#symbol', g:airline_symbols.branch)
|
||||
|
||||
return empty(head)
|
||||
\ ? empty_message
|
||||
\ : printf('%s%s', empty(symbol) ? '' : symbol.(g:airline_symbols.space), head)
|
||||
|
||||
Reference in new issue
Block a user