fix(exception): remember whether message is multiline (#25351)

This commit is contained in:
zeertzjq
2023-09-25 08:23:24 +08:00
committed by GitHub
parent 8195c18006
commit 9e7c4fe579
5 changed files with 44 additions and 10 deletions

View File

@@ -640,7 +640,7 @@ int emsg_not_now(void)
return false;
}
static bool emsg_multiline(const char *s, bool multiline)
bool emsg_multiline(const char *s, bool multiline)
{
int attr;
bool ignore = false;
@@ -663,7 +663,7 @@ static bool emsg_multiline(const char *s, bool multiline)
// be found, the message will be displayed later on.) "ignore" is set
// when the message should be ignored completely (used for the
// interrupt message).
if (cause_errthrow(s, severe, &ignore)) {
if (cause_errthrow(s, multiline, severe, &ignore)) {
if (!ignore) {
did_emsg++;
}