~ubuntu-branches/ubuntu/edgy/vim/edgy-backports

« back to all changes in this revision

Viewing changes to upstream/patches/6.3.007

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Waugh
  • Date: 2004-10-08 10:04:36 UTC
  • Revision ID: james.westby@ubuntu.com-20041008100436-xp63tppe72zhxjvn
Tags: 1:6.3-025+1ubuntu2
* debian/vim-gnome.desktop:
  - Disable menu item.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
To: vim-dev@vim.org
 
2
Subject: Patch 6.3.007
 
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.007
 
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.
 
14
Files:      src/fileio.c
 
15
 
 
16
 
 
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
 
19
***************
 
20
*** 5290,5297 ****
 
21
            }
 
22
            if (p == NULL || buf->b_fname == NULL)
 
23
                buf->b_fname = buf->b_ffname;
 
24
-           mf_fullname(buf->b_ml.ml_mfp);
 
25
        }
 
26
      }
 
27
  #ifdef FEAT_WINDOWS
 
28
      status_redraw_all();
 
29
--- 5290,5300 ----
 
30
            }
 
31
            if (p == NULL || buf->b_fname == NULL)
 
32
                buf->b_fname = buf->b_ffname;
 
33
        }
 
34
 
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);
 
38
      }
 
39
  #ifdef FEAT_WINDOWS
 
40
      status_redraw_all();
 
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
 
43
***************
 
44
*** 643,644 ****
 
45
--- 643,646 ----
 
46
  {   /* Add new patch number below this line */
 
47
+ /**/
 
48
+     7,
 
49
  /**/
 
50
 
 
51
-- 
 
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.
 
54
 
 
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 ///