Add plugin to &rtp before running post-update hook with : prefix

Close #593
This commit is contained in:
Junegunn Choi
2017-02-11 23:27:52 +09:00
parent e80a93d5d0
commit f551a71688
2 changed files with 13 additions and 0 deletions

View File

@@ -820,6 +820,10 @@ function! s:do(pull, force, todo)
let type = type(spec.do)
if type == s:TYPE.string
if spec.do[0] == ':'
if !get(s:loaded, name, 0)
let s:loaded[name] = 1
call s:reorg_rtp()
endif
call s:load_plugin(spec)
try
execute spec.do[1:]