vim-patch:8.1.1334: respect shortmess=F when buffer is hidden #11443

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.
eda652215a

test_getvalue() is not implemented.
It is only used for checking "need_fileinfo" internal variable.
This commit is contained in:
Jan Edmund Lazo
2019-11-24 00:56:58 -05:00
committed by Justin M. Keyes
parent 2aa7b10114
commit 222637c341
2 changed files with 10 additions and 2 deletions

View File

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