use appropriate escape function
This commit is contained in:
parent
a7aa94d699
commit
31dde613fc
@ -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 = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user