Inline substitute inside s:dirpath()

This commit is contained in:
Andrea Cedraro 2014-07-29 14:21:11 +02:00
parent 878cdd5309
commit 6af2cd8946

View file

@ -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)