fix(messages): message not flushed at end of command #37904

Problem:  Logic determining messages belonging to the last command to
          show with "g<" does not flush pending messages. This can
          result in clearing the temporary message history before a
          message still belonging to the previous command was emitted.
Solution: Flush pending messages when marking the end of messages
          belonging to previous command.
This commit is contained in:
luukvbaal
2026-02-16 17:51:43 +01:00
committed by GitHub
parent 6e1745e96e
commit 49c19a1fe3
3 changed files with 16 additions and 4 deletions

View File

@@ -439,8 +439,8 @@ describe('vim.ui_attach', function()
|
{1:~ }|*2
{3: }|
{9:Lua callback:} |
{9:[string "<nvim>"]:3: foo} |
{9:Error in "msg_show" UI event handler (ns=(UNKNOWN PLUGIN)):} |
{9:Lua: [string "<nvim>"]:3: foo} |
{9:stack traceback:} |
{9: [C]: in function 'error'} |
{9: [string "<nvim>"]:3: in function <[string "<nvim>"]:1>} |