aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mapping.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/mapping.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/mapping.c')
-rw-r--r--src/nvim/mapping.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c
index 1a6b2c3581..1896f042f2 100644
--- a/src/nvim/mapping.c
+++ b/src/nvim/mapping.c
@@ -581,6 +581,9 @@ static int buf_do_map(int maptype, MapArguments *args, int mode, bool is_abbrev,
const bool has_lhs = (args->lhs[0] != NUL);
const bool has_rhs = args->rhs_lua != LUA_NOREF || (args->rhs[0] != NUL) || args->rhs_is_noop;
const bool do_print = !has_lhs || (maptype != MAPTYPE_UNMAP && !has_rhs);
+ if (do_print) {
+ msg_ext_set_kind("list_cmd");
+ }
// check for :unmap without argument
if (maptype == MAPTYPE_UNMAP && !has_lhs) {