fix possibility of the branch extension being unavailable. resolves #366.

This commit is contained in:
Bailey Ling 2013-12-03 20:01:26 -05:00
parent 0966b693d9
commit ce32405105

View File

@ -17,7 +17,7 @@ function! s:get_hunks_signify()
endfunction endfunction
function! s:is_branch_empty() 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 endfunction
function! s:get_hunks_gitgutter() function! s:get_hunks_gitgutter()