Remove trailing backslash from rtp on Windows
This commit is contained in:
parent
f6d94b350c
commit
8fe08f1944
6
plug.vim
6
plug.vim
|
@ -106,7 +106,11 @@ function! plug#end()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:rtp(spec)
|
function! s:rtp(spec)
|
||||||
return s:dirpath(a:spec.dir . get(a:spec, 'rtp', ''))
|
let rtp = s:dirpath(a:spec.dir . get(a:spec, 'rtp', ''))
|
||||||
|
if s:is_win
|
||||||
|
let rtp = substitute(rtp, '\\*$', '', '')
|
||||||
|
endif
|
||||||
|
return rtp
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:add(...)
|
function! s:add(...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user