mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:8.2.1631: test_fails() does not check the context of the line number
Problem: test_fails() does not check the context of the line number.
Solution: Use another argument to specify the context of the line number.
9bd5d879c2
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -666,6 +666,8 @@ static bool emsg_multiline(const char *s, bool multiline)
|
||||
if (emsg_assert_fails_used && emsg_assert_fails_msg == NULL) {
|
||||
emsg_assert_fails_msg = xstrdup(s);
|
||||
emsg_assert_fails_lnum = SOURCING_LNUM;
|
||||
xfree(emsg_assert_fails_context);
|
||||
emsg_assert_fails_context = xstrdup(SOURCING_NAME == NULL ? "" : SOURCING_NAME);
|
||||
}
|
||||
|
||||
// set "v:errmsg", also when using ":silent! cmd"
|
||||
|
Reference in New Issue
Block a user