Load plugin before running funcref hook

Fix #964
Fix https://github.com/junegunn/fzf.vim/issues/1008
This commit is contained in:
Junegunn Choi 2020-05-03 16:57:21 +09:00
parent e718868e85
commit 54d837fa54
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -942,6 +942,7 @@ function! s:do(pull, force, todo)
endif endif
elseif type == s:TYPE.funcref elseif type == s:TYPE.funcref
try try
call s:load_plugin(spec)
let status = installed ? 'installed' : (updated ? 'updated' : 'unchanged') let status = installed ? 'installed' : (updated ? 'updated' : 'unchanged')
call spec.do({ 'name': name, 'status': status, 'force': a:force }) call spec.do({ 'name': name, 'status': status, 'force': a:force })
catch catch