diff --git a/plug.vim b/plug.vim index 5b4fae3..051a49c 100644 --- a/plug.vim +++ b/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)