diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-10 21:11:12 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-10 23:54:51 +0800 |
| commit | 9c272b75ecf955afe7feedc209f5d9a3b7116650 (patch) | |
| tree | 0c0669662d2c7be2a3a1073ccb2711e31fef0a91 /src/nvim/testdir | |
| parent | 8781213f00a22e20abeb4282204e900db799f4b5 (diff) | |
| download | rneovim-9c272b75ecf955afe7feedc209f5d9a3b7116650.tar.gz rneovim-9c272b75ecf955afe7feedc209f5d9a3b7116650.tar.bz2 rneovim-9c272b75ecf955afe7feedc209f5d9a3b7116650.zip | |
vim-patch:8.2.2184: Vim9: no error when using "2" for a line number
Problem: Vim9: no error when using "2" for a line number.
Solution: Give an error message if the line number is invalid. (closes vim/vim#7492)
https://github.com/vim/vim/commit/9a963377b4811e4e0419ec8825856ff4b01331ac
N/A patches for version.c:
vim-patch:8.2.1465: Vim9: subscript not handled properly
Problem: Vim9: subscript not handled properly.
Solution: Adjust error message. Remove dead code. Disallow string to
number conversion in scripts.
https://github.com/vim/vim/commit/56acb0943ede35cd9d2f6667cde2442819ccbf59
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cursor_func.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_cursor_func.vim b/src/nvim/testdir/test_cursor_func.vim index 2e625f2388..e428bf3e23 100644 --- a/src/nvim/testdir/test_cursor_func.vim +++ b/src/nvim/testdir/test_cursor_func.vim @@ -32,7 +32,7 @@ func Test_move_cursor() call cursor(1, 1, 1) call assert_equal([1, 1, 1], getcurpos()[1:3]) - call assert_equal(-1, cursor(-1, -1)) + call assert_fails('call cursor(-1, -1)', 'E475:') quit! endfunc |