mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
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.
28ee892ac4
Cherry-pick no_wait_return from patch 9.0.0846.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user