Fix helptags generation for plugins with custom rtp

Close #684
This commit is contained in:
Junegunn Choi
2017-09-24 23:59:28 +09:00
parent cd44b03db2
commit ddc67fc136
3 changed files with 16 additions and 1 deletions

View File

@@ -605,7 +605,7 @@ function! plug#helptags()
return s:err('plug#begin was not called')
endif
for spec in values(g:plugs)
let docd = join([spec.dir, 'doc'], '/')
let docd = join([s:rtp(spec), 'doc'], '/')
if isdirectory(docd)
silent! execute 'helptags' s:esc(docd)
endif