aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-02-20 23:04:27 +0100
committerGitHub <noreply@github.com>2025-02-20 14:04:27 -0800
commite16bec41b6505678d640755cebe8ec320dec2d45 (patch)
treeb001cd59ee801c3c503c3f03f932db004080aac7 /src/nvim/tag.c
parent51cf84daf9612574978731e66db45a52136b8899 (diff)
downloadrneovim-e16bec41b6505678d640755cebe8ec320dec2d45.tar.gz
rneovim-e16bec41b6505678d640755cebe8ec320dec2d45.tar.bz2
rneovim-e16bec41b6505678d640755cebe8ec320dec2d45.zip
feat(messages): confirm kind for z=, :tselect, inputlist() #32521
Problem: Messages preceding a `cmdline_show->prompt` event can not be distinguished as such when receiving the event. (But since `msg_show` handlers should be scheduled, one can already check whether a prompt is active when displaying the message.) Solution: Rather than add a new kind again, use the `confirm` kind. Could be seen as slightly misleading where it is more of a choice rather than a confirmation, but that already applies to `confirm()` as well...
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index c99a8083e4..557d41a467 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -813,6 +813,7 @@ static void print_tag_list(bool new_tag, bool use_tagstack, int num_matches, cha
if (msg_col == 0) {
msg_didout = false; // overwrite previous message
}
+ msg_ext_set_kind("confirm");
msg_start();
msg_puts_hl(_(" # pri kind tag"), HLF_T, false);
msg_clr_eos();