mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-19 23:09:47 +08:00
fugitive: remove old fugitive test
As mentioned by @tpope, remove the old test for the autoloaded function fugitivie#head() and instead use consistently FugitiveHead() everywhere
This commit is contained in:
@@ -144,7 +144,7 @@ endfunction
|
||||
|
||||
function! airline#util#has_fugitive()
|
||||
if !exists("s:has_fugitive")
|
||||
let s:has_fugitive = exists('*fugitive#head') || exists('*FugitiveHead')
|
||||
let s:has_fugitive = exists('*FugitiveHead')
|
||||
endif
|
||||
return s:has_fugitive
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user