Inline substitute inside s:dirpath()
This commit is contained in:
parent
878cdd5309
commit
6af2cd8946
1 changed files with 1 additions and 1 deletions
2
plug.vim
2
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)
|
||||
|
|
Loading…
Reference in a new issue