mirror of
https://github.com/neovim/neovim.git
synced 2026-02-09 13:28:47 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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 = [[
|
||||
|
||||
Reference in New Issue
Block a user