diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-23 23:27:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-23 23:27:36 +0200 |
commit | 0ab190c05706b1c72e6e2ca4d990febfa81cf886 (patch) | |
tree | 3feebb49e1cda191d9e19cc7da45a28517bdab5d /src/testdir/test_put.vim | |
parent | 1c6fd1e100fd0457375642ec50d483bcc0f61bb2 (diff) | |
download | vim-git-0ab190c05706b1c72e6e2ca4d990febfa81cf886.tar.gz |
patch 8.1.1373: "[p" in Visual mode puts in wrong linev8.1.1373
Problem: "[p" in Visual mode puts in wrong line.
Solution: Call nv_put() instead of duplicating the functionality.
(closes #4408)
Diffstat (limited to 'src/testdir/test_put.vim')
-rw-r--r-- | src/testdir/test_put.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim index 2a9e8a3c0..80d2a2686 100644 --- 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 |