]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.375 v7.2.375
authorBram Moolenaar <Bram@vim.org>
Wed, 24 Feb 2010 15:58:36 +0000 (16:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 24 Feb 2010 15:58:36 +0000 (16:58 +0100)
Problem:    ml_get errors when using ":bprevious" in a BufEnter autocmd.
            (Dominique Pelle)
Solution:   Clear w_valid when entering another buffer.

src/buffer.c
src/version.c

index a3cd6be38d8a3c16d9a78082c23d2f16aebcc9d2..0569f166d18bad3c4b3cb677c58eece90a36e0d9 100644 (file)
@@ -115,7 +115,7 @@ open_buffer(read_stdin, eap)
 #endif
 
     /* mark cursor position as being invalid */
-    changed_line_abv_curs();
+    curwin->w_valid = 0;
 
     if (curbuf->b_ffname != NULL
 #ifdef FEAT_NETBEANS_INTG
@@ -1399,6 +1399,9 @@ enter_buffer(buf)
     curwin->w_topline_was_set = FALSE;
 #endif
 
+    /* mark cursor position as being invalid */
+    curwin->w_valid = 0;
+
     /* Make sure the buffer is loaded. */
     if (curbuf->b_ml.ml_mfp == NULL)   /* need to load the file */
     {
index 0fcb52fb2df81c13367245710dfa2e5af4e8e29b..9fc3f570bf0f245b60a8a36822712533c392f4e0 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    375,
 /**/
     374,
 /**/