fix(messages): add "list_cmd" kind to :colorscheme #37561

Problem:  No kind for :colorscheme message.
Solution: Assign it the "list_cmd" kind.
This commit is contained in:
luukvbaal
2026-01-26 17:56:39 +01:00
committed by GitHub
parent 543e14d040
commit 96e1acfa42
2 changed files with 11 additions and 0 deletions

View File

@@ -4758,6 +4758,7 @@ static void ex_colorscheme(exarg_T *eap)
emsg_off--;
xfree(expr);
msg_ext_set_kind("list_cmd");
if (p != NULL) {
msg(p, 0);
xfree(p);

View File

@@ -489,6 +489,16 @@ describe('ui/ext_messages', function()
},
})
feed(':colorscheme<CR>')
screen:expect({
grid = [[
line 1 |
^line |
{1:~ }|*3
]],
messages = { { content = { { 'default' } }, history = true, kind = 'list_cmd' } },
})
feed(':version<CR>')
screen:expect({
grid = [[