From 6af2cd89462c4ed54f719a0a0a48ab4b684e281d Mon Sep 17 00:00:00 2001 From: Andrea Cedraro Date: Tue, 29 Jul 2014 14:21:11 +0200 Subject: [PATCH] Inline substitute inside s:dirpath() --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)