fix possibility of the branch extension being unavailable. resolves #366.
This commit is contained in:
parent
0966b693d9
commit
ce32405105
|
@ -17,7 +17,7 @@ function! s:get_hunks_signify()
|
|||
endfunction
|
||||
|
||||
function! s:is_branch_empty()
|
||||
return get(g:, 'airline#extensions#branch#enabled', 1) && empty(airline#extensions#branch#head())
|
||||
return exists('*airline#extensions#branch#head') && empty(airline#extensions#branch#head())
|
||||
endfunction
|
||||
|
||||
function! s:get_hunks_gitgutter()
|
||||
|
|
Loading…
Reference in New Issue