diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 14:38:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 14:38:26 +0800 |
| commit | c00844aee4d9b607073ff123dfe2e872c9b84954 (patch) | |
| tree | 837c0973319b8d168db9ccd96d6ae113d29287e7 /src/nvim/testdir/test_marks.vim | |
| parent | ec33edc7b7027b809ac0b496344367a451e3974a (diff) | |
| parent | 7b39ce36a4599539cd5cb07dad6bd980d30a3180 (diff) | |
| download | rneovim-c00844aee4d9b607073ff123dfe2e872c9b84954.tar.gz rneovim-c00844aee4d9b607073ff123dfe2e872c9b84954.tar.bz2 rneovim-c00844aee4d9b607073ff123dfe2e872c9b84954.zip | |
Merge pull request #20806 from zeertzjq/vim-8.2.0401
vim-patch:7.4.{1081,1097},8.2.{0401,0418}: eval tests
Diffstat (limited to 'src/nvim/testdir/test_marks.vim')
| -rw-r--r-- | src/nvim/testdir/test_marks.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_marks.vim b/src/nvim/testdir/test_marks.vim index 74e63d9d69..054ebf1218 100644 --- a/src/nvim/testdir/test_marks.vim +++ b/src/nvim/testdir/test_marks.vim @@ -91,6 +91,15 @@ func Test_setpos() call assert_equal([0, 1, 21341234, 0], getpos("'a")) call assert_equal(4, virtcol("'a")) + " Test with invalid buffer number, line number and column number + call cursor(2, 2) + call setpos('.', [-1, 1, 1, 0]) + call assert_equal([2, 2], [line('.'), col('.')]) + call setpos('.', [0, -1, 1, 0]) + call assert_equal([2, 2], [line('.'), col('.')]) + call setpos('.', [0, 1, -1, 0]) + call assert_equal([2, 2], [line('.'), col('.')]) + bwipe! call win_gotoid(twowin) bwipe! |