mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-13 00:00:15 +08:00
fix possibility of the branch extension being unavailable. resolves #366.
This commit is contained in:
1 parent
0966b693d9
commit
ce32405105
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user