fugitive: Check for existence of FugitiveStatusline function
as per @tpopes advice.
This commit is contained in:
parent
30a3c4f549
commit
a1680cc36d
|
@ -105,7 +105,7 @@ function! airline#util#ignore_buf(name)
|
|||
endfunction
|
||||
|
||||
function! airline#util#has_fugitive()
|
||||
return exists('*fugitive#head') || exists('*FugitiveHead')
|
||||
return exists('*fugitive#head') || exists('*FugitiveStatusline')
|
||||
endfunction
|
||||
|
||||
function! airline#util#has_lawrencium()
|
||||
|
|
Loading…
Reference in New Issue