]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.386
- updated to 6.2.430
[packages/vim.git] / 6.2.386
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.386
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.2.386
11 Problem:    Wasting time trying to read marks from the viminfo file for a
12             buffer without a name.
13 Solution:   Skip reading marks when the buffer has no name.
14 Files:      src/fileio.c
15
16
17 *** ../vim-6.2.385/src/fileio.c Sat Mar 20 21:17:12 2004
18 --- src/fileio.c        Sat Mar 20 20:02:34 2004
19 ***************
20 *** 2247,2256 ****
21   #endif
22   
23   #ifdef FEAT_VIMINFO
24       static void
25   check_marks_read()
26   {
27 !     if (!curbuf->b_marks_read && get_viminfo_parameter('\'') > 0)
28         read_viminfo(NULL, FALSE, TRUE, FALSE);
29   
30       /* Always set b_marks_read; needed when 'viminfo' is changed to include
31 --- 2247,2261 ----
32   #endif
33   
34   #ifdef FEAT_VIMINFO
35 + /*
36 +  * Read marks for the current buffer from the viminfo file, when we support
37 +  * buffer marks and the buffer has a name.
38 +  */
39       static void
40   check_marks_read()
41   {
42 !     if (!curbuf->b_marks_read && get_viminfo_parameter('\'') > 0
43 !                                                 && curbuf->b_ffname != NULL)
44         read_viminfo(NULL, FALSE, TRUE, FALSE);
45   
46       /* Always set b_marks_read; needed when 'viminfo' is changed to include
47 *** ../vim-6.2.385/src/version.c        Sat Mar 20 21:17:12 2004
48 --- src/version.c       Sat Mar 20 21:20:36 2004
49 ***************
50 *** 639,640 ****
51 --- 639,642 ----
52   {   /* Add new patch number below this line */
53 + /**/
54 +     386,
55   /**/
56
57 -- 
58 From "know your smileys":
59  =):-)  Uncle Sam
60
61  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
62 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
63 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
64  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.073952 seconds and 3 git commands to generate.