aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-25 08:23:24 +0800
committerGitHub <noreply@github.com>2023-09-25 08:23:24 +0800
commit9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed (patch)
treed0315ad50f1bcf30eb66c118114ac797611d3d4b /src/nvim/ex_eval.c
parent8195c180065a7f477b63f0eb4e5edb890adba0c5 (diff)
downloadrneovim-9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed.tar.gz
rneovim-9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed.tar.bz2
rneovim-9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed.zip
fix(exception): remember whether message is multiline (#25351)
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r--src/nvim/ex_eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c
index 1b150ef75d..0704b47d40 100644
--- a/src/nvim/ex_eval.c
+++ b/src/nvim/ex_eval.c
@@ -157,7 +157,7 @@ int aborted_in_try(void)
/// When several messages appear in the same command, the first is usually the
/// most specific one and used as the exception value. The "severe" flag can be
/// set to true, if a later but severer message should be used instead.
-bool cause_errthrow(const char *mesg, bool severe, bool *ignore)
+bool cause_errthrow(const char *mesg, bool multiline, bool severe, bool *ignore)
FUNC_ATTR_NONNULL_ALL
{
msglist_T *elem;
@@ -249,6 +249,7 @@ bool cause_errthrow(const char *mesg, bool severe, bool *ignore)
elem = xmalloc(sizeof(msglist_T));
elem->msg = xstrdup(mesg);
+ elem->multiline = multiline;
elem->next = NULL;
elem->throw_msg = NULL;
*plist = elem;