diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:14:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:14:38 +0000 |
commit | 864207de089119377a1e1e5d411307d8eb57399e (patch) | |
tree | d5bc119317f9c46d7136d1e12f06bac3b13d491b /runtime/plugin/rrhelper.vim | |
parent | c1a11ed54c7974b74be38f2aef6a200d7cfc878e (diff) | |
download | vim-git-864207de089119377a1e1e5d411307d8eb57399e.tar.gz |
updated for version 7.2a
Diffstat (limited to 'runtime/plugin/rrhelper.vim')
-rw-r--r-- | runtime/plugin/rrhelper.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/plugin/rrhelper.vim b/runtime/plugin/rrhelper.vim index 05090b59c..302177cb2 100644 --- a/runtime/plugin/rrhelper.vim +++ b/runtime/plugin/rrhelper.vim @@ -1,6 +1,6 @@ " Vim plugin with helper function(s) for --remote-wait " Maintainer: Flemming Madsen <fma@cci.dk> -" Last Change: 2004 May 30 +" Last Change: 2008 May 29 " Has this already been loaded? if exists("loaded_rrhelper") @@ -27,7 +27,12 @@ if has("clientserver") " Path separators are always forward slashes for the autocommand pattern. " Escape special characters with a backslash. - let f = escape(substitute(argv(cnt), '\\', '/', "g"), ' *,?[{') + let f = substitute(argv(cnt), '\\', '/', "g") + if exists('*fnameescape') + let f = fnameescape(f) + else + let f = escape(f, " \t\n*?[{`$\\%#'\"|!<") + endif execute "augroup ".uniqueGroup execute "autocmd ".uniqueGroup." BufUnload ". f ." call DoRemoteReply('".id."', '".cnt."', '".uniqueGroup."', '". f ."')" let cnt = cnt + 1 |