From ce324051057f9dd371bf5e56246a92b7ed271884 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 3 Dec 2013 20:01:26 -0500 Subject: [PATCH] fix possibility of the branch extension being unavailable. resolves #366. --- autoload/airline/extensions/hunks.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/hunks.vim b/autoload/airline/extensions/hunks.vim index 9da481d..084dd7b 100644 --- a/autoload/airline/extensions/hunks.vim +++ b/autoload/airline/extensions/hunks.vim @@ -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()