diff options
author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-24 01:22:16 -0800 |
---|---|---|
committer | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-24 01:22:16 -0800 |
commit | f7c20b94c7c79ce883fa4f561c5c92f59a06641a (patch) | |
tree | 7d41dc325c9bf162527fc448cdcb98179162e9c1 /src/nvim/buffer.c | |
parent | d410812311f7b462420690455914ea1316953b3a (diff) | |
parent | 222637c341700294a059651bcea62d2e91795646 (diff) | |
download | rneovim-f7c20b94c7c79ce883fa4f561c5c92f59a06641a.tar.gz rneovim-f7c20b94c7c79ce883fa4f561c5c92f59a06641a.tar.bz2 rneovim-f7c20b94c7c79ce883fa4f561c5c92f59a06641a.zip |
Merge branch 'master' into lsp-followup
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 1244b8502c..0cd02ce36b 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1585,10 +1585,12 @@ void enter_buffer(buf_T *buf) open_buffer(false, NULL, 0); } else { - if (!msg_silent) { + if (!msg_silent && !shortmess(SHM_FILEINFO)) { need_fileinfo = true; // display file info after redraw } - (void)buf_check_timestamp(curbuf, false); // check if file changed + // check if file changed + (void)buf_check_timestamp(curbuf, false); + curwin->w_topline = 1; curwin->w_topfill = 0; apply_autocmds(EVENT_BUFENTER, NULL, NULL, false, curbuf); |