4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Writing a compressed file fails when there are parens in the name.
13 Solution: Put quotes around the temp file name.
14 Files: runtime/autoload/gzip.vim
17 *** ../vim-7.0.047/runtime/autoload/gzip.vim Wed Apr 5 22:17:15 2006
18 --- runtime/autoload/gzip.vim Wed Jul 19 23:53:52 2006
21 " Vim autoload file for editing compressed files.
22 " Maintainer: Bram Moolenaar <Bram@vim.org>
23 ! " Last Change: 2006 Mar 31
25 " These functions are used by the gzip plugin.
28 " Vim autoload file for editing compressed files.
29 " Maintainer: Bram Moolenaar <Bram@vim.org>
30 ! " Last Change: 2006 Jul 19
32 " These functions are used by the gzip plugin.
36 let nmt = s:tempname(nm)
37 if rename(nm, nmt) == 0
38 if exists("b:gzip_comp_arg")
39 ! call system(a:cmd . " " . b:gzip_comp_arg . " " . nmt)
41 ! call system(a:cmd . " " . nmt)
43 call rename(nmt . "." . expand("<afile>:e"), nm)
46 let nmt = s:tempname(nm)
47 if rename(nm, nmt) == 0
48 if exists("b:gzip_comp_arg")
49 ! call system(a:cmd . " " . b:gzip_comp_arg . " '" . nmt . "'")
51 ! call system(a:cmd . " '" . nmt . "'")
53 call rename(nmt . "." . expand("<afile>:e"), nm)
55 *** ../vim-7.0.047/src/version.c Tue Aug 8 19:10:35 2006
56 --- src/version.c Tue Aug 8 19:26:51 2006
60 { /* Add new patch number below this line */
66 A fool learns from his mistakes, a wise man from someone else's.
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70 \\\ download, build and distribute -- http://www.A-A-P.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///