fix(messages): reset redirection message column after :echon #39472

Problem:  Message redirection column for captured output is not reset
          after :echon since (4260f73, e63346df).

Solution: Ensure msg_ext_append is set before the kind with :echon.
(cherry picked from commit ce9f4f0369)
This commit is contained in:
luukvbaal
2026-05-11 21:47:19 +02:00
committed by github-actions[bot]
parent 10695f44af
commit d725ead5ec
5 changed files with 12 additions and 5 deletions

View File

@@ -442,6 +442,8 @@ describe('API', function()
exec_lua('vim.ui_attach(1, { ext_messages = true }, function() end)')
api.nvim_exec2('hi VisualNC', { output = true })
eq('VisualNC xxx cleared', api.nvim_exec2('hi VisualNC', { output = true }).output)
api.nvim_exec2('echon 1234567', { output = true })
eq('VisualNC xxx cleared', api.nvim_exec2('hi VisualNC', { output = true }).output)
end)
it('captures multi-chunk err nvim_echo() #36883', function()