|
Karsten Hopp |
1ec284 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
1ec284 |
Subject: patch 7.1.033
|
|
Karsten Hopp |
1ec284 |
Fcc: outbox
|
|
Karsten Hopp |
1ec284 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1ec284 |
Mime-Version: 1.0
|
|
Karsten Hopp |
1ec284 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
1ec284 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1ec284 |
------------
|
|
Karsten Hopp |
1ec284 |
|
|
Karsten Hopp |
1ec284 |
Patch 7.1.033
|
|
Karsten Hopp |
1ec284 |
Problem: A buffer is marked modified when it was first deleted and then
|
|
Karsten Hopp |
1ec284 |
added again using a ":next" command. (John Mullin)
|
|
Karsten Hopp |
1ec284 |
Solution: When checking if a buffer is modified use the BF_NEVERLOADED flag.
|
|
Karsten Hopp |
1ec284 |
Files: src/option.c
|
|
Karsten Hopp |
1ec284 |
|
|
Karsten Hopp |
1ec284 |
|
|
Karsten Hopp |
1ec284 |
*** ../vim-7.1.032/src/option.c Tue Jun 19 20:56:52 2007
|
|
Karsten Hopp |
1ec284 |
--- src/option.c Sun Jul 22 16:42:47 2007
|
|
Karsten Hopp |
1ec284 |
***************
|
|
Karsten Hopp |
1ec284 |
*** 10624,10629 ****
|
|
Karsten Hopp |
1ec284 |
--- 10624,10632 ----
|
|
Karsten Hopp |
1ec284 |
file_ff_differs(buf)
|
|
Karsten Hopp |
1ec284 |
buf_T *buf;
|
|
Karsten Hopp |
1ec284 |
{
|
|
Karsten Hopp |
1ec284 |
+ /* In a buffer that was never loaded the options are not valid. */
|
|
Karsten Hopp |
1ec284 |
+ if (buf->b_flags & BF_NEVERLOADED)
|
|
Karsten Hopp |
1ec284 |
+ return FALSE;
|
|
Karsten Hopp |
1ec284 |
if ((buf->b_flags & BF_NEW)
|
|
Karsten Hopp |
1ec284 |
&& buf->b_ml.ml_line_count == 1
|
|
Karsten Hopp |
1ec284 |
&& *ml_get_buf(buf, (linenr_T)1, FALSE) == NUL)
|
|
Karsten Hopp |
1ec284 |
*** ../vim-7.1.032/src/version.c Tue Jul 17 18:14:14 2007
|
|
Karsten Hopp |
1ec284 |
--- src/version.c Mon Jul 23 09:45:44 2007
|
|
Karsten Hopp |
1ec284 |
***************
|
|
Karsten Hopp |
1ec284 |
*** 668,669 ****
|
|
Karsten Hopp |
1ec284 |
--- 668,671 ----
|
|
Karsten Hopp |
1ec284 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1ec284 |
+ /**/
|
|
Karsten Hopp |
1ec284 |
+ 33,
|
|
Karsten Hopp |
1ec284 |
/**/
|
|
Karsten Hopp |
1ec284 |
|
|
Karsten Hopp |
1ec284 |
--
|
|
Karsten Hopp |
1ec284 |
How To Keep A Healthy Level Of Insanity:
|
|
Karsten Hopp |
1ec284 |
8. Don't use any punctuation marks.
|
|
Karsten Hopp |
1ec284 |
|
|
Karsten Hopp |
1ec284 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1ec284 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1ec284 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
1ec284 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|