4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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.
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
27 ! if (!curbuf->b_marks_read && get_viminfo_parameter('\'') > 0)
28 read_viminfo(NULL, FALSE, TRUE, FALSE);
30 /* Always set b_marks_read; needed when 'viminfo' is changed to include
36 + * Read marks for the current buffer from the viminfo file, when we support
37 + * buffer marks and the buffer has a name.
42 ! if (!curbuf->b_marks_read && get_viminfo_parameter('\'') > 0
43 ! && curbuf->b_ffname != NULL)
44 read_viminfo(NULL, FALSE, TRUE, FALSE);
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
52 { /* Add new patch number below this line */
58 From "know your smileys":
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 ///