From 33a5dd8b237738c15cae87441d731ab899b4e846 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 28 Aug 2022 22:17:50 +0100 Subject: patch 9.0.0308: when cmdheight is zero the attention prompt doesn't show Problem: When cmdheight is zero the attention prompt doesn't show. Solution: Do not use the message window for a prompt. --- src/message.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/message.c') diff --git a/src/message.c b/src/message.c index c6fbfbd4b..096f274dd 100644 --- a/src/message.c +++ b/src/message.c @@ -1443,6 +1443,19 @@ use_message_window(void) #endif } +/* + * Do not use the message window for the next message(s). + * Used when giving a prompt. + */ + void +dont_use_message_window(void) +{ +#ifdef HAS_MESSAGE_WINDOW + popup_hide_message_win(); + cmdline_row = Rows - 1; +#endif +} + /* * Prepare for outputting characters in the command line. */ @@ -4073,6 +4086,7 @@ do_dialog( } #endif + dont_use_message_window(); oldState = State; State = MODE_CONFIRM; setmouse(); -- cgit v1.2.1