diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-28 14:39:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-28 14:39:53 +0100 |
commit | 35a4fbc5d04820d9b08e7da2e295a7e8210e2e2c (patch) | |
tree | 905bb72938a493a8644f4bf1d52a05d1990f87c1 /src/message.c | |
parent | 00d4ceeccafb36f1337d133489b3651c11e78c30 (diff) | |
download | vim-git-35a4fbc5d04820d9b08e7da2e295a7e8210e2e2c.tar.gz |
patch 9.0.0296: message in popup is shortened unnecessaryv9.0.0296
Problem: Message in popup is shortened unnecessary.
Solution: Do not use 'showcmd' and 'ruler' for a message in the popup.
Set the timer when unhiding the message popup.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index a2803650a..bff54d008 100644 --- a/src/message.c +++ b/src/message.c @@ -206,7 +206,11 @@ msg_strtrunc( && !exmode_active && msg_silent == 0) || force) { len = vim_strsize(s); - if (msg_scrolled != 0) + if (msg_scrolled != 0 +#ifdef HAS_MESSAGE_WINDOW + || use_message_window() +#endif + ) // Use all the columns. room = (int)(Rows - msg_row) * Columns - 1; else @@ -3719,7 +3723,11 @@ msg_end(void) void msg_check(void) { - if (msg_row == Rows - 1 && msg_col >= sc_col) + if (msg_row == Rows - 1 && msg_col >= sc_col +#ifdef HAS_MESSAGE_WINDOW + && !use_message_window() +#endif + ) { need_wait_return = TRUE; redraw_cmdline = TRUE; |