diff src/message.c @ 30029:d03ee646c9ec v9.0.0352

patch 9.0.0352: using :echowindow in a timer clears part of message Commit: https://github.com/vim/vim/commit/3b474dcd30ea188124f5ad766f5096f9a0cef895 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 1 17:01:32 2022 +0100 patch 9.0.0352: using :echowindow in a timer clears part of message Problem: using :echowindow in a timer clears part of message Solution: Do not use msg_clr_eos().
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 18:15:05 +0200
parents bb0e525e1393
children b871016ea7c1
line wrap: on
line diff
--- a/src/message.c
+++ b/src/message.c
@@ -1443,7 +1443,7 @@ msg_start(void)
     }
 
 #ifdef FEAT_EVAL
-    if (need_clr_eos || in_echowindow)
+    if (need_clr_eos)
     {
 	// Halfway an ":echo" command and getting an (error) message: clear
 	// any text from the command.
@@ -3646,6 +3646,10 @@ msg_clr_eos(void)
     void
 msg_clr_eos_force(void)
 {
+#ifdef HAS_MESSAGE_WINDOW
+    if (in_echowindow)
+	return;  // messages go into a popup
+#endif
     if (msg_use_printf())
     {
 	if (full_screen)	// only when termcap codes are valid