aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_marks.vim
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-01-27 23:23:26 +0000
committerGitHub <noreply@github.com>2022-01-27 23:23:26 +0000
commit815aa9f6425b34f1857a5b4213dff0dce6dda2b9 (patch)
tree90b5b1c6a02452712e93133f48328dc0e41bc72b /src/nvim/testdir/test_marks.vim
parent14751eaf70c6c0e55a9c2ec1ba3e4540a7e2d87f (diff)
parentd8adb3a72122aa36571acdff552dddf7aff3d4ff (diff)
downloadrneovim-815aa9f6425b34f1857a5b4213dff0dce6dda2b9.tar.gz
rneovim-815aa9f6425b34f1857a5b4213dff0dce6dda2b9.tar.bz2
rneovim-815aa9f6425b34f1857a5b4213dff0dce6dda2b9.zip
Merge pull request #16820 from seandewar/vim-8.1.2302
vim-patch:8.1.2302,8.2.{3936,4112}
Diffstat (limited to 'src/nvim/testdir/test_marks.vim')
-rw-r--r--src/nvim/testdir/test_marks.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_marks.vim b/src/nvim/testdir/test_marks.vim
index b3035d73ce..4ef42946cb 100644
--- a/src/nvim/testdir/test_marks.vim
+++ b/src/nvim/testdir/test_marks.vim
@@ -207,6 +207,21 @@ func Test_mark_error()
call assert_fails('mark _', 'E191:')
endfunc
+" Test for :lockmarks when pasting content
+func Test_lockmarks_with_put()
+ new
+ call append(0, repeat(['sky is blue'], 4))
+ normal gg
+ 1,2yank r
+ put r
+ normal G
+ lockmarks put r
+ call assert_equal(2, line("'["))
+ call assert_equal(3, line("']"))
+
+ bwipe!
+endfunc
+
" Test for the getmarklist() function
func Test_getmarklist()
new
@@ -231,3 +246,5 @@ func Test_getmarklist()
call assert_equal([], {}->getmarklist())
close!
endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab