diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 12:37:28 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 12:41:20 +0800 |
commit | 0d8293364f78237afb83d4822611d6fd8add66f8 (patch) | |
tree | 00f1c7cb6b2863db300a06f720cbae8233ba34b7 /src/nvim/message.c | |
parent | b33de61cc3e14cc6160a972205f6543e82b843aa (diff) | |
download | rneovim-0d8293364f78237afb83d4822611d6fd8add66f8.tar.gz rneovim-0d8293364f78237afb83d4822611d6fd8add66f8.tar.bz2 rneovim-0d8293364f78237afb83d4822611d6fd8add66f8.zip |
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().
https://github.com/vim/vim/commit/1d634542cf5ebcd1d5d83bd124b3e1d5e7c96c58
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 4837f4131a..c95968afb4 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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" |