mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
vim-patch:8.2.1479: Vim9: error for list index uses wrong line number
Problem: Vim9: error for list index uses wrong line number.
Solution: Set source line number. (closes vim/vim#6724) Add a way to assert the
line number of the error with assert_fails().
1d634542cf
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -665,6 +665,7 @@ 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;
|
||||
}
|
||||
|
||||
// set "v:errmsg", also when using ":silent! cmd"
|
||||
|
Reference in New Issue
Block a user