e219b75
To: vim-dev@vim.org
e219b75
Subject: Patch 7.2.375
e219b75
Fcc: outbox
e219b75
From: Bram Moolenaar <Bram@moolenaar.net>
e219b75
Mime-Version: 1.0
e219b75
Content-Type: text/plain; charset=UTF-8
e219b75
Content-Transfer-Encoding: 8bit
e219b75
------------
e219b75
e219b75
Patch 7.2.375
e219b75
Problem:    ml_get errors when using ":bprevious" in a BufEnter autocmd.
e219b75
	    (Dominique Pelle)
e219b75
Solution:   Clear w_valid when entering another buffer.
e219b75
Files:	    src/buffer.c
e219b75
e219b75
e219b75
*** ../vim-7.2.374/src/buffer.c	2010-01-19 14:59:14.000000000 +0100
e219b75
--- src/buffer.c	2010-02-24 16:29:22.000000000 +0100
e219b75
***************
e219b75
*** 115,121 ****
e219b75
  #endif
e219b75
  
e219b75
      /* mark cursor position as being invalid */
e219b75
!     changed_line_abv_curs();
e219b75
  
e219b75
      if (curbuf->b_ffname != NULL
e219b75
  #ifdef FEAT_NETBEANS_INTG
e219b75
--- 115,121 ----
e219b75
  #endif
e219b75
  
e219b75
      /* mark cursor position as being invalid */
e219b75
!     curwin->w_valid = 0;
e219b75
  
e219b75
      if (curbuf->b_ffname != NULL
e219b75
  #ifdef FEAT_NETBEANS_INTG
e219b75
***************
e219b75
*** 1399,1404 ****
e219b75
--- 1399,1407 ----
e219b75
      curwin->w_topline_was_set = FALSE;
e219b75
  #endif
e219b75
  
e219b75
+     /* mark cursor position as being invalid */
e219b75
+     curwin->w_valid = 0;
e219b75
+ 
e219b75
      /* Make sure the buffer is loaded. */
e219b75
      if (curbuf->b_ml.ml_mfp == NULL)	/* need to load the file */
e219b75
      {
e219b75
*** ../vim-7.2.374/src/version.c	2010-02-24 15:47:58.000000000 +0100
e219b75
--- src/version.c	2010-02-24 16:30:03.000000000 +0100
e219b75
***************
e219b75
*** 683,684 ****
e219b75
--- 683,686 ----
e219b75
  {   /* Add new patch number below this line */
e219b75
+ /**/
e219b75
+     375,
e219b75
  /**/
e219b75
e219b75
-- 
e219b75
Error:015 - Unable to exit Windows.  Try the door.
e219b75
e219b75
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
e219b75
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
e219b75
\\\        download, build and distribute -- http://www.A-A-P.org        ///
e219b75
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///