Browse Source

Remove duplicate expression and escape helptags directory

Junegunn Choi 11 years ago
parent
commit
01e126469b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -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