Просмотр исходного кода

Do not escape spaces in &rtp

Related: https://github.com/SirVer/ultisnips/issues/445
Junegunn Choi 11 лет назад
Родитель
Сommit
9c1cca32f0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plug.vim

+ 2 - 2
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