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

patch 9.0.0351: message window may obscure the command line

Problem:    Message window may obscure the command line.
Solution:   Reduce the maximum height of the message window.
This commit is contained in:
Bram Moolenaar
2022-09-01 16:43:17 +01:00
parent 7d7ad7b2e8
commit b5b4f61cf1
5 changed files with 24 additions and 12 deletions

View File

@@ -6729,7 +6729,8 @@ ex_execute(exarg_T *eap)
ga_init2(&ga, 1, 80);
#ifdef HAS_MESSAGE_WINDOW
in_echowindow = (eap->cmdidx == CMD_echowindow);
if (eap->cmdidx == CMD_echowindow)
start_echowindow();
#endif
if (eap->skip)
@@ -6833,17 +6834,7 @@ ex_execute(exarg_T *eap)
--emsg_skip;
#ifdef HAS_MESSAGE_WINDOW
if (eap->cmdidx == CMD_echowindow)
{
// show the message window now
ex_redraw(eap);
// do not overwrite messages
// TODO: only for message window
msg_didout = TRUE;
if (msg_col == 0)
msg_col = 1;
in_echowindow = FALSE;
}
end_echowindow();
#endif
set_nextcmd(eap, arg);
}