Browse Source

Inline substitute inside s:dirpath()

Andrea Cedraro 11 years ago
parent
commit
6af2cd8946
1 changed files with 1 additions and 1 deletions
  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)