4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: A buffer is marked modified when it was first deleted and then
12 added again using a ":next" command. (John Mullin)
13 Solution: When checking if a buffer is modified use the BF_NEVERLOADED flag.
17 *** ../vim-7.1.032/src/option.c Tue Jun 19 20:56:52 2007
18 --- src/option.c Sun Jul 22 16:42:47 2007
25 + /* In a buffer that was never loaded the options are not valid. */
26 + if (buf->b_flags & BF_NEVERLOADED)
28 if ((buf->b_flags & BF_NEW)
29 && buf->b_ml.ml_line_count == 1
30 && *ml_get_buf(buf, (linenr_T)1, FALSE) == NUL)
31 *** ../vim-7.1.032/src/version.c Tue Jul 17 18:14:14 2007
32 --- src/version.c Mon Jul 23 09:45:44 2007
36 { /* Add new patch number below this line */
42 How To Keep A Healthy Level Of Insanity:
43 8. Don't use any punctuation marks.
45 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
46 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
47 \\\ download, build and distribute -- http://www.A-A-P.org ///
48 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///