Mercurial > vim
diff src/eval.c @ 30027:7e787f94852b v9.0.0351
patch 9.0.0351: message window may obscure the command line
Commit: https://github.com/vim/vim/commit/b5b4f61cf192324379b6a8c4f7ed83a13f0e3bc6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 16:43:17 2022 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Sep 2022 17:45:03 +0200 |
parents | bb0e525e1393 |
children | c222a5a2a42a |
line wrap: on
line diff
--- 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); }