mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(api): deprecate nvim_out/err_write(ln)
This commit is contained in:
@@ -702,14 +702,14 @@ local wait_result_reason = { [-1] = 'timeout', [-2] = 'interrupted', [-3] = 'err
|
||||
---
|
||||
--- @param ... string List to write to the buffer
|
||||
local function err_message(...)
|
||||
local message = table.concat(vim.iter({ ... }):flatten():totable())
|
||||
local chunks = { { table.concat({ ... }) } }
|
||||
if vim.in_fast_event() then
|
||||
vim.schedule(function()
|
||||
api.nvim_err_writeln(message)
|
||||
vim.api.nvim_echo(chunks, true, { err = true })
|
||||
api.nvim_command('redraw')
|
||||
end)
|
||||
else
|
||||
api.nvim_err_writeln(message)
|
||||
vim.api.nvim_echo(chunks, true, { err = true })
|
||||
api.nvim_command('redraw')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user