diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-09 23:54:04 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-11 23:42:55 +0200 |
commit | 3d1ed7c959017dc8664497b26c86c9ffabf02891 (patch) | |
tree | 99a2d680a63de8d1ac63fc5abb05b04dd16518b6 /src/nvim/message.c | |
parent | 7c9d4d971cab4525fb2245ec527736b4e9471e84 (diff) | |
download | rneovim-3d1ed7c959017dc8664497b26c86c9ffabf02891.tar.gz rneovim-3d1ed7c959017dc8664497b26c86c9ffabf02891.tar.bz2 rneovim-3d1ed7c959017dc8664497b26c86c9ffabf02891.zip |
UI/ext_messages: learn more message kinds
ref #6201
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 4c5f357451..cb83d6482c 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -3008,6 +3008,8 @@ void give_warning(char_u *message, bool hl) FUNC_ATTR_NONNULL_ARG(1) } else { keep_msg_attr = 0; } + msg_ext_set_kind("wmsg"); + if (msg_attr((const char *)message, keep_msg_attr) && msg_scrolled == 0) { set_keep_msg(message, keep_msg_attr); } @@ -3348,6 +3350,7 @@ void display_confirm_msg(void) // Avoid that 'q' at the more prompt truncates the message here. confirm_msg_used++; if (confirm_msg != NULL) { + msg_ext_set_kind("confirm"); msg_puts_attr((const char *)confirm_msg, HL_ATTR(HLF_M)); } confirm_msg_used--; |