changeset 2091:95b659982b7c v7.2.375

updated for version 7.2.375 Problem: ml_get errors when using ":bprevious" in a BufEnter autocmd. (Dominique Pelle) Solution: Clear w_valid when entering another buffer.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 24 Feb 2010 16:58:36 +0100
parents 53d475dff0e3
children 98cc757f7e3d
files src/buffer.c src/version.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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 */
     {
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    375,
+/**/
     374,
 /**/
     373,