summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-29 18:16:32 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-29 18:16:32 +0100
commit37fef16c225eabed28a3c7a0542d2eeef30d812b (patch)
tree57bebcbc858d18cb593d625d7eb659eb8f3a3c7a /src/ex_getln.c
parent54acb90d9e672315e3bd13f8dc71f828df97c868 (diff)
patch 9.0.0321: cannot use the message popup window directlyv9.0.0321
Problem: Cannot use the message popup window directly. Solution: Add ":echowindow".
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c7
1 files changed, 7 insertions, 0 deletions
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