diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-25 08:23:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 08:23:24 +0800 |
commit | 9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed (patch) | |
tree | d0315ad50f1bcf30eb66c118114ac797611d3d4b /src/nvim/message.c | |
parent | 8195c180065a7f477b63f0eb4e5edb890adba0c5 (diff) | |
download | rneovim-9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed.tar.gz rneovim-9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed.tar.bz2 rneovim-9e7c4fe5791559ff2c9ffe6329f1d7e2150385ed.zip |
fix(exception): remember whether message is multiline (#25351)
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index ad78092cac..dba4dba600 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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++; } |