瀏覽代碼

Remove duplicate expression and escape helptags directory

Junegunn Choi 11 年之前
父節點
當前提交
01e126469b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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