summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-16 20:29:44 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-16 20:29:44 +0200
commiteda652215abf696f86b872888945a2d2dd8c7192 (patch)
tree48e30bac1dc042b3dac7e88d20f43e32cec43b8e /src/buffer.c
parent45dd07f10af9bea86f8df77e92788209e209fdab (diff)
patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not usedv8.1.1334
Problem: When buffer is hidden "F" in 'shortmess' is not used. Solution: Check the "F" flag in 'shortmess' when the buffer is already loaded. (Jason Franklin) Add test_getvalue() to be able to test this.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e825a99a42..e10368483d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1742,9 +1742,12 @@ enter_buffer(buf_T *buf)
}
else
{
- if (!msg_silent)
- need_fileinfo = TRUE; /* display file info after redraw */
- (void)buf_check_timestamp(curbuf, FALSE); /* check if file changed */
+ if (!msg_silent && !shortmess(SHM_FILEINFO))
+ need_fileinfo = TRUE; // display file info after redraw
+
+ // check if file changed
+ (void)buf_check_timestamp(curbuf, FALSE);
+
curwin->w_topline = 1;
#ifdef FEAT_DIFF
curwin->w_topfill = 0;