4
From: Bram Moolenaar <Bram@moolenaar.net>
6
Content-Type: text/plain; charset=ISO-8859-1
7
Content-Transfer-Encoding: 8bit
11
Problem: When there is a buffer with 'buftype' set to "nofile" and using a
12
":cd" command, the swap file is not deleted when exiting.
13
Solution: Use the full path of the swap file also for "nofile" buffers.
17
*** ../vim-6.3.006/src/fileio.c Wed Jun 9 14:56:28 2004
18
--- src/fileio.c Sun Jun 20 13:53:29 2004
22
if (p == NULL || buf->b_fname == NULL)
23
buf->b_fname = buf->b_ffname;
24
- mf_fullname(buf->b_ml.ml_mfp);
31
if (p == NULL || buf->b_fname == NULL)
32
buf->b_fname = buf->b_ffname;
35
+ /* Always make the swap file name a full path, a "nofile" buffer may
36
+ * also have a swap file. */
37
+ mf_fullname(buf->b_ml.ml_mfp);
41
*** ../vim-6.3.006/src/version.c Wed Jun 16 12:34:33 2004
42
--- src/version.c Sun Jun 20 13:55:23 2004
46
{ /* Add new patch number below this line */
52
hundred-and-one symptoms of being an internet addict:
53
220. Your wife asks for sex and you tell her where to find you on IRC.
55
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
56
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
57
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
58
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///