aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_marks.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-02 12:25:07 +0800
committerGitHub <noreply@github.com>2022-07-02 12:25:07 +0800
commita9de89894a2ff43dd511b38f20ab2815d6c7e2bd (patch)
tree8c6da1a08e4bb88f876e93bb6fc6d24461cff93e /src/nvim/testdir/test_marks.vim
parentf71d518c90b46dd7c53d151a59ff9a5236589f64 (diff)
parent727754377281aa442767c0ad9c25fec7dd2533ab (diff)
downloadrneovim-a9de89894a2ff43dd511b38f20ab2815d6c7e2bd.tar.gz
rneovim-a9de89894a2ff43dd511b38f20ab2815d6c7e2bd.tar.bz2
rneovim-a9de89894a2ff43dd511b38f20ab2815d6c7e2bd.zip
Merge pull request #19202 from zeertzjq/vim-8.2.0316
vim-patch:8.2.{0261,0316}: insufficient test coverage
Diffstat (limited to 'src/nvim/testdir/test_marks.vim')
-rw-r--r--src/nvim/testdir/test_marks.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_marks.vim b/src/nvim/testdir/test_marks.vim
index 00ee8f6d6a..608f9883c2 100644
--- a/src/nvim/testdir/test_marks.vim
+++ b/src/nvim/testdir/test_marks.vim
@@ -232,6 +232,15 @@ func Test_lockmarks_with_put()
bwipe!
endfunc
+" Test for :k command to set a mark
+func Test_marks_k_cmd()
+ new
+ call setline(1, ['foo', 'bar', 'baz', 'qux'])
+ 1,3kr
+ call assert_equal([0, 3, 1, 0], getpos("'r"))
+ close!
+endfunc
+
" Test for the getmarklist() function
func Test_getmarklist()
new