mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +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:
@@ -7968,8 +7968,7 @@ void ex_execute(exarg_T *eap)
|
||||
} else if (eap->cmdidx == CMD_echoerr) {
|
||||
// We don't want to abort following commands, restore did_emsg.
|
||||
int save_did_emsg = did_emsg;
|
||||
msg_ext_set_kind("echoerr");
|
||||
emsg_multiline(ga.ga_data, true);
|
||||
emsg_multiline(ga.ga_data, "echoerr", HLF_E, true);
|
||||
if (!force_abort) {
|
||||
did_emsg = save_did_emsg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user