use appropriate escape function
This commit is contained in:
parent
a7aa94d699
commit
31dde613fc
@ -65,13 +65,13 @@ func! s:rtp_add_a()
|
||||
endf
|
||||
|
||||
func! s:rtp_rm(dir) abort
|
||||
exec 'set rtp-='.escape(expand(a:dir),' ')
|
||||
exec 'set rtp-='.escape(expand(a:dir.'/after'), ' ')
|
||||
exec 'set rtp-='.fnameescape(expand(a:dir))
|
||||
exec 'set rtp-='.fnameescape(expand(a:dir.'/after'))
|
||||
endf
|
||||
|
||||
func! s:rtp_add(dir) abort
|
||||
exec 'set rtp^='.escape(expand(a:dir), ' ')
|
||||
exec 'set rtp+='.escape(expand(a:dir.'/after'), ' ')
|
||||
exec 'set rtp^='.fnameescape(expand(a:dir))
|
||||
exec 'set rtp+='.fnameescape(expand(a:dir.'/after'))
|
||||
endf
|
||||
|
||||
let s:bundle = {}
|
||||
|
Loading…
Reference in New Issue
Block a user