mirror of
https://github.com/neovim/neovim.git
synced 2026-02-28 06:15:10 +00:00
fix(messages): unwanted ext_messages newlines for confirm() #38045
Problem: Newlines emitted with ext_messages intended to position
the message/prompt on the message grid.
Solution: Don't emit these newlines with ext_messages, followup to 4260f73e.
This commit is contained in:
@@ -213,7 +213,7 @@ describe('vim.ui_attach', function()
|
||||
cmdline = {
|
||||
{ content = { { '' } }, hl = 'MoreMsg', pos = 0, prompt = '[Y]es, (N)o, (C)ancel: ' },
|
||||
},
|
||||
messages = { { content = { { '\nSave changes?\n', 6, 'MoreMsg' } }, kind = 'confirm' } },
|
||||
messages = { { content = { { 'Save changes?', 6, 'MoreMsg' } }, kind = 'confirm' } },
|
||||
})
|
||||
feed('n')
|
||||
screen:expect_unchanged()
|
||||
|
||||
Reference in New Issue
Block a user