Problem: ml_get errors when using ":bprevious" in a BufEnter autocmd.
(Dominique Pelle)
Solution: Clear w_valid when entering another buffer.
#endif
/* mark cursor position as being invalid */
- changed_line_abv_curs();
+ curwin->w_valid = 0;
if (curbuf->b_ffname != NULL
#ifdef FEAT_NETBEANS_INTG
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 */
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 375,
/**/
374,
/**/