use the same fugitive check as the extension.

This commit is contained in:
Bailey Ling 2013-09-12 18:26:11 +00:00
parent a88996b170
commit 8606f3ebc1
1 changed files with 1 additions and 1 deletions

View File

@ -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