mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 06:45:37 +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--;
|
emsg_off--;
|
||||||
xfree(expr);
|
xfree(expr);
|
||||||
|
|
||||||
|
msg_ext_set_kind("list_cmd");
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
msg(p, 0);
|
msg(p, 0);
|
||||||
xfree(p);
|
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>')
|
feed(':version<CR>')
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
|
|||||||
Reference in New Issue
Block a user