|
|
@@ -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
|
|
|
|