diff src/testdir/test_put.vim @ 16742:75b5d77bbbab v8.1.1373

patch 8.1.1373: "[p" in Visual mode puts in wrong line commit https://github.com/vim/vim/commit/0ab190c05706b1c72e6e2ca4d990febfa81cf886 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 23 23:27:36 2019 +0200 patch 8.1.1373: "[p" in Visual mode puts in wrong line Problem: "[p" in Visual mode puts in wrong line. Solution: Call nv_put() instead of duplicating the functionality. (closes #4408)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 May 2019 23:30:04 +0200
parents 2dcaa860e3fc
children 4935244c1128
line wrap: on
line diff
--- a/src/testdir/test_put.vim
+++ b/src/testdir/test_put.vim
@@ -101,3 +101,15 @@ func Test_put_p_errmsg_nodup()
   delfunction Capture_p_error
   bwipeout!
 endfunc
+
+func Test_put_p_indent_visual()
+  new
+  call setline(1, ['select this text', 'select that text'])
+  " yank "that" from the second line
+  normal 2Gwvey
+  " select "this" in the first line and put
+  normal k0wve[p
+  call assert_equal('select that text', getline(1))
+  call assert_equal('select that text', getline(2))
+  bwipe!
+endfunc