diff options
| author | Bram Moolenaar <Bram@vim.org> | 2010-02-24 16:58:36 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2010-02-24 16:58:36 +0100 |
| commit | 89c0ea4ea1724854764b87e07bccb0243caebdf6 (patch) | |
| tree | f0de1ef884b8eb456b30e0fac08590ab6d0da2be /src/buffer.c | |
| parent | 3fac56e87e28b89fe89114343fc5cd013823c731 (diff) | |
| download | vim-git-7.2.375.tar.gz | |
updated for version 7.2.375v7.2.375
Problem: ml_get errors when using ":bprevious" in a BufEnter autocmd.
(Dominique Pelle)
Solution: Clear w_valid when entering another buffer.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index a3cd6be38..0569f166d 100644 --- 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 */ { |
