[SCM] Vim packaging branch, maint/lenny, updated. debian/7.1.314-3-51-g209709e
James Vega
jamessan at debian.org
Sun Oct 12 06:28:58 UTC 2008
The following commit has been merged in the maint/lenny branch:
commit 231939b65ec6f036e857310f0b10f2414cbffe82
Author: James Vega <jamessan at debian.org>
Date: Tue Oct 7 19:24:54 2008 -0400
Update filename escaping in spellfile plugin
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index b9e17f1..55361c1 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -106,7 +106,8 @@ function! spellfile#LoadFile(lang)
endfor
let dirchoice = confirm(msg, dirchoices) - 2
if dirchoice >= 0
- exe "write " . escape(dirlist[dirchoice], ' ') . '/' . fname
+ let dirname = fnameescape(dirlist[dirchoice])
+ exe "write " . dirname . '/' . fname
" Also download the .sug file, if the user wants to.
let msg = "Do you want me to try getting the .sug file?\n"
@@ -119,7 +120,7 @@ function! spellfile#LoadFile(lang)
call spellfile#Nread(fname)
if getline(2) =~ 'VIMsug'
1d
- exe "write " . escape(dirlist[dirchoice], ' ') . '/' . fname
+ exe "write " . dirname . '/' . fname
set nomod
else
echo 'Sorry, downloading failed'
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list