Skip to content

Commit 9c1cca3

Browse files
committed
Do not escape spaces in &rtp
Related: SirVer/ultisnips#445
1 parent f6be60a commit 9c1cca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plug.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ function! s:reorg_rtp()
327327
let s:middle = get(s:, 'middle', &rtp)
328328
let rtps = map(s:loaded_names(), 's:rtp(g:plugs[v:val])')
329329
let afters = filter(map(copy(rtps), 'globpath(v:val, "after")'), 'isdirectory(v:val)')
330-
let rtp = join(map(rtps, 's:escrtp(v:val)'), ',')
330+
let rtp = join(map(rtps, 'escape(v:val, ",")'), ',')
331331
\ . ','.s:middle.','
332-
\ . join(map(afters, 's:escrtp(v:val)'), ',')
332+
\ . join(map(afters, 'escape(v:val, ",")'), ',')
333333
let &rtp = substitute(substitute(rtp, ',,*', ',', 'g'), '^,\|,$', '', 'g')
334334
let s:prtp = &rtp
335335

0 commit comments

Comments
 (0)