patch 9.0.2125: File info disappears when 'cmdheight' has decreased

Problem:  File info disappears immediately when 'cmdheight' has just
          decreased due to switching tabpage and 'shortmess' doesn't
          contain 'o' or 'O'.
Solution: Make sure msg_row isn't smaller than cmdline_row.

fixes: #13560
closes: #13561

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2023-11-23 20:37:01 +01:00
committed by Christian Brabandt
parent 2b0882fa65
commit 40ed6711bd
3 changed files with 28 additions and 0 deletions

View File

@ -1446,6 +1446,9 @@ msg_start(void)
{
int did_return = FALSE;
if (msg_row < cmdline_row)
msg_row = cmdline_row;
if (!msg_silent)
{
VIM_CLEAR(keep_msg);