[SCM] Vim packaging branch, maint/lenny, updated. debian/7.1.314-3-51-g209709e
James Vega
jamessan at debian.org
Sun Oct 12 06:29:00 UTC 2008
The following commit has been merged in the maint/lenny branch:
commit 70acb9f3fc3ccc40b0d8a3556a77fb83889f9dc4
Author: James Vega <jamessan at debian.org>
Date: Wed Oct 8 22:48:26 2008 -0400
Update filename escaping for rrhelper plugin
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/runtime/plugin/rrhelper.vim b/runtime/plugin/rrhelper.vim
index 05090b5..39e5e13 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 at 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
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list