diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-11 17:50:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 17:50:52 +0800 |
commit | 0d8e8d36ec7d3f4967f27389b4b94edf3ba57433 (patch) | |
tree | 94f62c40fbb8714ab4f811682e450fd8d7affd68 /src/nvim/message.c | |
parent | fc7ac688c397b5f748920597fcc70fe46e907944 (diff) | |
download | rneovim-0d8e8d36ec7d3f4967f27389b4b94edf3ba57433.tar.gz rneovim-0d8e8d36ec7d3f4967f27389b4b94edf3ba57433.tar.bz2 rneovim-0d8e8d36ec7d3f4967f27389b4b94edf3ba57433.zip |
vim-patch:8.2.1919: assert_fails() setting emsg_silent changes normal execution (#20998)
Problem: Assert_fails() setting emsg_silent changes normal execution.
Solution: Use a separate flag in_assert_fails.
https://github.com/vim/vim/commit/28ee892ac4197421b3317f195512ca64cc56a5b4
Cherry-pick no_wait_return from patch 9.0.0846.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index d703f9f260..9fdd7a16a2 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -664,7 +664,7 @@ static bool emsg_multiline(const char *s, bool multiline) return true; } - if (emsg_assert_fails_used && emsg_assert_fails_msg == NULL) { + if (in_assert_fails && emsg_assert_fails_msg == NULL) { emsg_assert_fails_msg = xstrdup(s); emsg_assert_fails_lnum = SOURCING_LNUM; xfree(emsg_assert_fails_context); |