fix(messages): "list_cmd" kind for :command, :version (#34529)

Problem:  No ext_messages kind for the :command, :version commands.
          :version is emitted as multiple events.
Solution: Assign them the "list_cmd" kind. Use `msg_put*` to properly
          format the message as a single event.
This commit is contained in:
luukvbaal
2025-06-18 07:54:49 +02:00
committed by GitHub
parent 8af2aea24f
commit 3b85046ed5
5 changed files with 49 additions and 6 deletions

View File

@@ -448,6 +448,7 @@ static void uc_list(char *name, size_t name_len)
{
bool found = false;
msg_ext_set_kind("list_cmd");
// In cmdwin, the alternative buffer should be used.
const garray_T *gap = &prevwin_curwin()->w_buffer->b_ucmds;
while (true) {