aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_put.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_put.vim')
-rw-r--r--src/nvim/testdir/test_put.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim
index a46ef8b3fe..97af3699a8 100644
--- a/src/nvim/testdir/test_put.vim
+++ b/src/nvim/testdir/test_put.vim
@@ -114,6 +114,16 @@ func Test_put_p_indent_visual()
bwipe!
endfunc
+" Test for deleting all the contents of a buffer with a put
+func Test_put_visual_delete_all_lines()
+ new
+ call setline(1, ['one', 'two', 'three'])
+ let @r = ''
+ normal! VG"rgp
+ call assert_equal(1, line('$'))
+ close!
+endfunc
+
func Test_gp_with_count_leaves_cursor_at_end()
new
call setline(1, '<---->')