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.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim
index aceac58493..3b6b2e0e0d 100644
--- a/src/nvim/testdir/test_put.vim
+++ b/src/nvim/testdir/test_put.vim
@@ -116,8 +116,10 @@ func Test_gp_with_count_leaves_cursor_at_end()
new
call setline(1, '<---->')
call setreg('@', "foo\nbar", 'c')
- exe "normal 1G3|3gpix\<Esc>"
- call assert_equal(['<--foo', 'barfoo', 'barfoo', 'barx-->'], getline(1, '$'))
+ normal 1G3|3gp
+ call assert_equal([0, 4, 4, 0], getpos("."))
+ call assert_equal(['<--foo', 'barfoo', 'barfoo', 'bar-->'], getline(1, '$'))
+ call assert_equal([0, 4, 3, 0], getpos("']"))
bwipe!
endfunc