1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar 2010-02-24 16:58:36 +01:00
parent 3fac56e87e
commit 89c0ea4ea1
2 changed files with 6 additions and 1 deletions

View 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 */
{

View File

@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
375,
/**/
374,
/**/