use appropriate escape function

This commit is contained in:
gmarik 2011-04-10 18:42:18 -05:00
parent a7aa94d699
commit 31dde613fc

View File

@ -65,13 +65,13 @@ func! s:rtp_add_a()
endf endf
func! s:rtp_rm(dir) abort func! s:rtp_rm(dir) abort
exec 'set rtp-='.escape(expand(a:dir),' ') exec 'set rtp-='.fnameescape(expand(a:dir))
exec 'set rtp-='.escape(expand(a:dir.'/after'), ' ') exec 'set rtp-='.fnameescape(expand(a:dir.'/after'))
endf endf
func! s:rtp_add(dir) abort func! s:rtp_add(dir) abort
exec 'set rtp^='.escape(expand(a:dir), ' ') exec 'set rtp^='.fnameescape(expand(a:dir))
exec 'set rtp+='.escape(expand(a:dir.'/after'), ' ') exec 'set rtp+='.fnameescape(expand(a:dir.'/after'))
endf endf
let s:bundle = {} let s:bundle = {}