diff --git a/plug.vim b/plug.vim index 8fcb1b7..6db7e7f 100644 --- a/plug.vim +++ b/plug.vim @@ -218,7 +218,7 @@ else endfunction function! s:dirpath(path) - return s:path(a:path) . '/' + return substitute(a:path, '[/\\]*$', '/', '') endfunction endif