diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:43:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:43:17 +0100 |
commit | b5b4f61cf192324379b6a8c4f7ed83a13f0e3bc6 (patch) | |
tree | fa39548983e85dc2255c0dba25a17b9561a97e29 /src/eval.c | |
parent | 7d7ad7b2e8c6403033fbdb083f092321c0ccbfaf (diff) |
patch 9.0.0351: message window may obscure the command linev9.0.0351
Problem: Message window may obscure the command line.
Solution: Reduce the maximum height of the message window.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/eval.c b/src/eval.c index 2e8d938ec6..f55d9de8ec 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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); } |