]>
Commit | Line | Data |
---|---|---|
1242c4cb AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.048 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.048 | |
11 | Problem: Writing a compressed file fails when there are parens in the name. | |
12 | (Wang Jian) | |
13 | Solution: Put quotes around the temp file name. | |
14 | Files: runtime/autoload/gzip.vim | |
15 | ||
16 | ||
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 | |
19 | *************** | |
20 | *** 1,6 **** | |
21 | " Vim autoload file for editing compressed files. | |
22 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
23 | ! " Last Change: 2006 Mar 31 | |
24 | ||
25 | " These functions are used by the gzip plugin. | |
26 | ||
27 | --- 1,6 ---- | |
28 | " Vim autoload file for editing compressed files. | |
29 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
30 | ! " Last Change: 2006 Jul 19 | |
31 | ||
32 | " These functions are used by the gzip plugin. | |
33 | ||
34 | *************** | |
35 | *** 127,135 **** | |
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) | |
40 | else | |
41 | ! call system(a:cmd . " " . nmt) | |
42 | endif | |
43 | call rename(nmt . "." . expand("<afile>:e"), nm) | |
44 | endif | |
45 | --- 127,135 ---- | |
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 . "'") | |
50 | else | |
51 | ! call system(a:cmd . " '" . nmt . "'") | |
52 | endif | |
53 | call rename(nmt . "." . expand("<afile>:e"), nm) | |
54 | endif | |
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 | |
57 | *************** | |
58 | *** 668,669 **** | |
59 | --- 668,671 ---- | |
60 | { /* Add new patch number below this line */ | |
61 | + /**/ | |
62 | + 48, | |
63 | /**/ | |
64 | ||
65 | -- | |
66 | A fool learns from his mistakes, a wise man from someone else's. | |
67 | ||
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 /// |