mirror of
https://github.com/neovim/neovim.git
synced 2026-01-07 03:48:02 +10:00
fix(messages): proper multiline Lua print() messages #31205
Problem: Separate message emitted for each newline present in Lua
print() arguments.
Solution: Make msg_multiline() handle NUL bytes. Refactor print() to use
msg_multiline(). Refactor vim.print() to use print().
This commit is contained in:
@@ -277,10 +277,8 @@ describe('startup', function()
|
||||
|
||||
-- nvim <vim args> -l foo.lua <vim args>
|
||||
assert_l_out(
|
||||
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||
[[
|
||||
wrap
|
||||
|
||||
bufs:
|
||||
nvim args: 7
|
||||
lua args: { "-c", "set wrap?",
|
||||
|
||||
Reference in New Issue
Block a user