fugitive: Check for existence of FugitiveStatusline function

as per @tpopes advice.
This commit is contained in:
Christian Brabandt 2018-06-04 17:42:33 +02:00
parent 30a3c4f549
commit a1680cc36d
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -105,7 +105,7 @@ function! airline#util#ignore_buf(name)
endfunction endfunction
function! airline#util#has_fugitive() function! airline#util#has_fugitive()
return exists('*fugitive#head') || exists('*FugitiveHead') return exists('*fugitive#head') || exists('*FugitiveStatusline')
endfunction endfunction
function! airline#util#has_lawrencium() function! airline#util#has_lawrencium()