account for possibilty of branch extension unavailable. resolves #419.

This commit is contained in:
Bailey Ling committed 2014-01-20 12:39:33 -05:00
1 parent baed8ac063
commit fae68dbcb7
2 files changed
+9 -6

No files matched your search

-1
View File
@@ -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)