浏览代码

Merge branch 'vheon-refactoring' into refactoring

Junegunn Choi 11 年之前
父节点
当前提交
eeef77e9c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -226,7 +226,7 @@ else
   endfunction
 
   function! s:dirpath(path)
-    return s:trim(a:path) . '/'
+    return substitute(a:path, '[/\\]*$', '/', '')
   endfunction
 
   function! s:is_local_plug(repo)