diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-28 22:17:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-28 22:17:50 +0100 |
commit | 33a5dd8b237738c15cae87441d731ab899b4e846 (patch) | |
tree | d186bc7e0f4a34428a69365342fcde7e97742a82 /src/message.c | |
parent | 134b86553c12c46e0ae7d534f6fe65e8ba2d50bc (diff) | |
download | vim-git-33a5dd8b237738c15cae87441d731ab899b4e846.tar.gz |
patch 9.0.0308: when cmdheight is zero the attention prompt doesn't showv9.0.0308
Problem: When cmdheight is zero the attention prompt doesn't show.
Solution: Do not use the message window for a prompt.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index c6fbfbd4b..096f274dd 100644 --- a/src/message.c +++ b/src/message.c @@ -1444,6 +1444,19 @@ use_message_window(void) } /* + * 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. */ void @@ -4073,6 +4086,7 @@ do_dialog( } #endif + dont_use_message_window(); oldState = State; State = MODE_CONFIRM; setmouse(); |