1
0
forked from aniani/vim

patch 9.0.0307: :echomsg doesn't work properly with cmdheight=0

Problem:    :echomsg doesn't work properly with cmdheight=0.
Solution:   Improve scrolling and displaying.
This commit is contained in:
Bram Moolenaar
2022-08-28 21:36:43 +01:00
parent f2fb54f641
commit 134b86553c
7 changed files with 54 additions and 3 deletions

View File

@@ -8370,9 +8370,14 @@ ex_redraw(exarg_T *eap)
// After drawing the statusline screen_attr may still be set.
screen_stop_highlight();
// Reset msg_didout, so that a message that's there is overwritten.
msg_didout = FALSE;
msg_col = 0;
#ifdef HAS_MESSAGE_WINDOW
if (!use_message_window()) // append messages in the message window
#endif
{
// Reset msg_didout, so that a message that's there is overwritten.
msg_didout = FALSE;
msg_col = 0;
}
// No need to wait after an intentional redraw.
need_wait_return = FALSE;