]>
Commit | Line | Data |
---|---|---|
c3e61c4a AM |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.3.068 | |
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 6.3.068 | |
11 | Problem: When editing a compressed file xxx.gz which is a symbolic link to | |
12 | the actual file a ":write" renames the link. | |
13 | Solution: Resolve the link, so that the actual file is renamed and | |
14 | compressed. | |
15 | Files: runtime/plugin/gzip.vim | |
16 | ||
17 | ||
18 | *** ../vim-6.3.025/runtime/plugin/gzip.vim Wed Jun 9 14:56:33 2004 | |
19 | --- runtime/plugin/gzip.vim Thu Mar 24 10:56:30 2005 | |
20 | *************** | |
21 | *** 1,6 **** | |
22 | " Vim plugin for editing compressed files. | |
23 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
24 | ! " Last Change: 2004 Jan 12 | |
25 | ||
26 | " Exit quickly when: | |
27 | " - this plugin was already loaded | |
28 | --- 1,6 ---- | |
29 | " Vim plugin for editing compressed files. | |
30 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
31 | ! " Last Change: 2005 Mar 24 | |
32 | ||
33 | " Exit quickly when: | |
34 | " - this plugin was already loaded | |
35 | *************** | |
36 | *** 113,119 **** | |
37 | " don't do anything if the cmd is not supported | |
38 | if s:check(a:cmd) | |
39 | " Rename the file before compressing it. | |
40 | ! let nm = expand("<afile>") | |
41 | let nmt = s:tempname(nm) | |
42 | if rename(nm, nmt) == 0 | |
43 | call system(a:cmd . " " . nmt) | |
44 | --- 113,119 ---- | |
45 | " don't do anything if the cmd is not supported | |
46 | if s:check(a:cmd) | |
47 | " Rename the file before compressing it. | |
48 | ! let nm = resolve(expand("<afile>")) | |
49 | let nmt = s:tempname(nm) | |
50 | if rename(nm, nmt) == 0 | |
51 | call system(a:cmd . " " . nmt) | |
52 | *** ../vim-6.3.025/src/version.c Fri Mar 18 19:21:29 2005 | |
53 | --- src/version.c Thu Mar 24 10:59:13 2005 | |
54 | *************** | |
55 | *** 643,644 **** | |
56 | --- 643,646 ---- | |
57 | { /* Add new patch number below this line */ | |
58 | + /**/ | |
59 | + 68, | |
60 | /**/ | |
61 | ||
62 | -- | |
63 | Are leaders born or made? And if they're made, can we return them under | |
64 | warranty? | |
65 | (Scott Adams - The Dilbert principle) | |
66 | ||
67 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
68 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
69 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
70 | \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html /// |