summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-28 21:36:43 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-28 21:36:43 +0100
commit134b86553c12c46e0ae7d534f6fe65e8ba2d50bc (patch)
tree11fffb0e3c9fccdd446276d1414c508d1bc98e3f /src/ex_docmd.c
parentf2fb54f641aa0e8a64356e4d0053f89b52c78229 (diff)
downloadvim-git-134b86553c12c46e0ae7d534f6fe65e8ba2d50bc.tar.gz
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/ex_docmd.c')
-rw-r--r--src/ex_docmd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 89c9d26b0..598c6b7c3 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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;