From 31dde613fc67a35a318e25f00212d4b4eaedcf0d Mon Sep 17 00:00:00 2001 From: gmarik Date: Sun, 10 Apr 2011 18:42:18 -0500 Subject: [PATCH] use appropriate escape function --- autoload/vundle/config.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 68dfe68..3922f79 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -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 = {}