0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not used

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.
This commit is contained in:
Bram Moolenaar
2019-05-16 20:29:44 +02:00
parent 45dd07f10a
commit eda652215a
5 changed files with 41 additions and 3 deletions

View File

@@ -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;