4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: ml_get errors when using ":bprevious" in a BufEnter autocmd.
13 Solution: Clear w_valid when entering another buffer.
17 *** ../vim-7.2.374/src/buffer.c 2010-01-19 14:59:14.000000000 +0100
18 --- src/buffer.c 2010-02-24 16:29:22.000000000 +0100
23 /* mark cursor position as being invalid */
24 ! changed_line_abv_curs();
26 if (curbuf->b_ffname != NULL
27 #ifdef FEAT_NETBEANS_INTG
31 /* mark cursor position as being invalid */
32 ! curwin->w_valid = 0;
34 if (curbuf->b_ffname != NULL
35 #ifdef FEAT_NETBEANS_INTG
39 curwin->w_topline_was_set = FALSE;
42 + /* mark cursor position as being invalid */
43 + curwin->w_valid = 0;
45 /* Make sure the buffer is loaded. */
46 if (curbuf->b_ml.ml_mfp == NULL) /* need to load the file */
48 *** ../vim-7.2.374/src/version.c 2010-02-24 15:47:58.000000000 +0100
49 --- src/version.c 2010-02-24 16:30:03.000000000 +0100
53 { /* Add new patch number below this line */
59 Error:015 - Unable to exit Windows. Try the door.
61 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
62 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
63 \\\ download, build and distribute -- http://www.A-A-P.org ///
64 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///