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/eval.lua | |
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/eval.lua')
-rw-r--r-- | src/nvim/eval.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index ecb411a652..5952267c02 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -38,7 +38,7 @@ return { assert_equal={args={2, 3}, base=2}, assert_equalfile={args={2, 3}, base=1}, assert_exception={args={1, 2}}, - assert_fails={args={1, 3}, base=1}, + assert_fails={args={1, 4}, base=1}, assert_false={args={1, 2}, base=1}, assert_inrange={args={3, 4}, base=3}, assert_match={args={2, 3}, base=2}, |