Remove duplicate expression and escape helptags directory

This commit is contained in:
Junegunn Choi 2014-08-02 02:47:33 +09:00
parent a7477f04b7
commit 01e126469b

View file

@ -377,7 +377,7 @@ function! s:helptags()
for spec in values(g:plugs)
let docd = join([spec.dir, 'doc'], '/')
if isdirectory(docd)
silent! execute 'helptags '. join([spec.dir, 'doc'], '/')
silent! execute 'helptags '. s:esc(docd)
endif
endfor
endfunction