Do not escape spaces in &rtp
Related: https://github.com/SirVer/ultisnips/issues/445
This commit is contained in:
parent
f6be60a9a5
commit
9c1cca32f0
1 changed files with 2 additions and 2 deletions
4
plug.vim
4
plug.vim
|
@ -327,9 +327,9 @@ function! s:reorg_rtp()
|
|||
let s:middle = get(s:, 'middle', &rtp)
|
||||
let rtps = map(s:loaded_names(), 's:rtp(g:plugs[v:val])')
|
||||
let afters = filter(map(copy(rtps), 'globpath(v:val, "after")'), 'isdirectory(v:val)')
|
||||
let rtp = join(map(rtps, 's:escrtp(v:val)'), ',')
|
||||
let rtp = join(map(rtps, 'escape(v:val, ",")'), ',')
|
||||
\ . ','.s:middle.','
|
||||
\ . join(map(afters, 's:escrtp(v:val)'), ',')
|
||||
\ . join(map(afters, 'escape(v:val, ",")'), ',')
|
||||
let &rtp = substitute(substitute(rtp, ',,*', ',', 'g'), '^,\|,$', '', 'g')
|
||||
let s:prtp = &rtp
|
||||
|
||||
|
|
Loading…
Reference in a new issue