aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2024-11-20 21:11:20 +0100
committerGitHub <noreply@github.com>2024-11-20 12:11:20 -0800
commit1b6442034f6a821d357fe59cd75fdae47a7f7cff (patch)
tree579c72ee7b2f78025407d58722f9abc992f12cc1 /src/nvim/ui.c
parent0e2f92ed79e3c976ab5a41d40380e761e7f69d3a (diff)
downloadrneovim-1b6442034f6a821d357fe59cd75fdae47a7f7cff.tar.gz
rneovim-1b6442034f6a821d357fe59cd75fdae47a7f7cff.tar.bz2
rneovim-1b6442034f6a821d357fe59cd75fdae47a7f7cff.zip
fix(messages): more ext_messages kinds #31279
Add kinds for various commands that output a list, the 'wildmode' list, and for number prompts.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 7c81110ae9..eba821a53d 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -721,7 +721,7 @@ void ui_call_event(char *name, bool fast, Array args)
// Prompt messages should be shown immediately so must be safe
if (strcmp(name, "msg_show") == 0) {
char *kind = args.items[0].data.string.data;
- fast = !kind || (strncmp(kind, "confirm", 7) != 0 && strcmp(kind, "return_prompt") != 0);
+ fast = !kind || ((strncmp(kind, "confirm", 7) != 0 && strstr(kind, "_prompt") == NULL));
}
map_foreach(&ui_event_cbs, ui_event_ns_id, event_cb, {