From 8606f3ebc1e8c744d7e2f58bcd3f7bcd7b5276c4 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 12 Sep 2013 18:26:11 +0000 Subject: [PATCH] use the same fugitive check as the extension. --- autoload/airline/extensions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 5c202cc..00e1077 100755 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -168,7 +168,7 @@ function! airline#extensions#load() endif if (get(g:, 'airline#extensions#branch#enabled', 1) && get(g:, 'airline_enable_branch', 1)) - \ && (get(g:, 'loaded_fugitive', 0) || get(g:, 'loaded_lawrencium', 0)) + \ && (exists('*fugitive#head') || exists('*lawrencium#statusline')) call airline#extensions#branch#init(s:ext) endif