diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-28 21:36:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-28 21:36:43 +0100 |
commit | 134b86553c12c46e0ae7d534f6fe65e8ba2d50bc (patch) | |
tree | 11fffb0e3c9fccdd446276d1414c508d1bc98e3f /src/eval.c | |
parent | f2fb54f641aa0e8a64356e4d0053f89b52c78229 (diff) |
patch 9.0.0307: :echomsg doesn't work properly with cmdheight=0v9.0.0307
Problem: :echomsg doesn't work properly with cmdheight=0.
Solution: Improve scrolling and displaying.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 3d6d84c2bb..8cd2716406 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6824,7 +6824,18 @@ ex_execute(exarg_T *eap) if (eap->skip) --emsg_skip; +#ifdef HAS_MESSAGE_WINDOW + if (use_message_window() && eap->cmdidx != CMD_execute) + { + // show the message window now + ex_redraw(eap); + // do not overwrite messages + msg_didout = TRUE; + if (msg_col == 0) + msg_col = 1; + } +#endif set_nextcmd(eap, arg); } |