diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-12 00:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-12 00:11:57 +0200 |
| commit | ab7d9ae19356aa2b1a3c12a9846bc279d159e763 (patch) | |
| tree | 5fe18e2e7b23ee8eba8bc0f7b0bdaa53046fa454 /src/nvim/message.c | |
| parent | 7c9d4d971cab4525fb2245ec527736b4e9471e84 (diff) | |
| parent | a0f775c4d3eedfb845d1254cae767a38a1c28b93 (diff) | |
| download | rneovim-ab7d9ae19356aa2b1a3c12a9846bc279d159e763.tar.gz rneovim-ab7d9ae19356aa2b1a3c12a9846bc279d159e763.tar.bz2 rneovim-ab7d9ae19356aa2b1a3c12a9846bc279d159e763.zip | |
Merge #9993 from justinmk/ui-message-kinds
UI/ext_messages: learn more message kinds
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--; |