From 37fef16c225eabed28a3c7a0542d2eeef30d812b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 29 Aug 2022 18:16:32 +0100 Subject: patch 9.0.0321: cannot use the message popup window directly Problem: Cannot use the message popup window directly. Solution: Add ":echowindow". --- src/ex_getln.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index 2454be71fa..25073a869f 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -3872,6 +3872,8 @@ redrawcmdprompt(void) void redrawcmd(void) { + int save_in_echowindow = in_echowindow; + if (cmd_silent) return; @@ -3883,6 +3885,9 @@ redrawcmd(void) return; } + // Do not put this in the message window. + in_echowindow = FALSE; + sb_text_restart_cmdline(); msg_start(); redrawcmdprompt(); @@ -3906,6 +3911,8 @@ redrawcmd(void) // Typing ':' at the more prompt may set skip_redraw. We don't want this // in cmdline mode skip_redraw = FALSE; + + in_echowindow = save_in_echowindow; } void -- cgit v1.2.3