vim-patch:9.0.2125: File info disappears when 'cmdheight' has decreased (#26180)

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: vim/vim#13560
closes: vim/vim#13561

40ed6711bd
This commit is contained in:
zeertzjq
2023-11-24 06:13:24 +08:00
committed by GitHub
parent 4ed1c2a8af
commit 9510346141
3 changed files with 70 additions and 1 deletions

View File

@@ -1395,7 +1395,11 @@ void msg_ext_set_kind(const char *msg_kind)
/// Prepare for outputting characters in the command line.
void msg_start(void)
{
int did_return = false;
bool did_return = false;
if (msg_row < cmdline_row) {
msg_row = cmdline_row;
}
if (!msg_silent) {
XFREE_CLEAR(keep_msg); // don't display old message now