[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:14 UTC 2008
The following commit has been merged in the maint/lenny branch:
commit ccb446aad5d80c18adedf0e6efdcf923ec4e1792
Author: James Vega <jamessan at debian.org>
Date: Thu Oct 9 22:16:07 2008 -0400
Update filename escaping for ocaml.vim
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/runtime/ftplugin/ocaml.vim b/runtime/ftplugin/ocaml.vim
index 10ead8a..7e2197a 100644
--- a/runtime/ftplugin/ocaml.vim
+++ b/runtime/ftplugin/ocaml.vim
@@ -68,14 +68,14 @@ if !exists("g:did_ocaml_switch")
map <LocalLeader>S :call OCaml_switch(1)<CR>
fun OCaml_switch(newwin)
if (match(bufname(""), "\\.mli$") >= 0)
- let fname = substitute(bufname(""), "\\.mli$", ".ml", "")
+ let fname = fnameescape(substitute(bufname(""), "\\.mli$", ".ml", ""))
if (a:newwin == 1)
exec "new " . fname
else
exec "arge " . fname
endif
elseif (match(bufname(""), "\\.ml$") >= 0)
- let fname = bufname("") . "i"
+ let fname = fnameescape(bufname("") . "i")
if (a:newwin == 1)
exec "new " . fname
else
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list