mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-09 04:52:20 +08:00
fugitive: Check for existence of FugitiveStatusline function
as per @tpopes advice.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user