mirror of
https://github.com/neovim/neovim.git
synced 2025-10-20 16:51:48 +00:00
feat(api): add err field to nvim_echo() opts
Problem: We want to deprecate `nvim_err_write(ln)()` but there is no obvious replacement (from Lua). Meanwhile we already have `nvim_echo()` with an `opts` argument. Solution: Add `err` argument to `nvim_echo()` that directly maps to `:echoerr`.
This commit is contained in:
@@ -982,7 +982,7 @@ void handle_did_throw(void)
|
||||
if (messages != NULL) {
|
||||
do {
|
||||
msglist_T *next = messages->next;
|
||||
emsg_multiline(messages->msg, messages->multiline);
|
||||
emsg_multiline(messages->msg, "emsg", HLF_E, messages->multiline);
|
||||
xfree(messages->msg);
|
||||
xfree(messages->sfile);
|
||||
xfree(messages);
|
||||
|
Reference in New Issue
Block a user