branch: fugitive renamed its functions

this caused that the branch extension was not correctly working anymore
because of a refactoring of fugitive tpope/vim-fugitive@5d11ff7

Solution: Move the existence check for the fugitive plugin into a
separate function and call it from there in all places that check the
fugitive plugin. Do the same for lawrencium and vcscommand check.

fixes #605 #1739
This commit is contained in:
Christian Brabandt committed 2018-06-04 17:38:49 +02:00
1 parent 08570b6dcb
commit 30a3c4f549
4 files changed
+27 -22

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
scriptencoding utf-8
if !exists('*fugitive#head')
if !airline#util#has_fugitive()
finish
endif