diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-05-23 19:35:44 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-05-23 19:50:52 -0400 |
| commit | b87a1db5acbe9a1e210c20d625e5bee19240c3a4 (patch) | |
| tree | 3bdd9cfe5b7c0568539af195398ebcb5b04e6278 /src/nvim/testdir | |
| parent | 66d127957ed3cc27af0344c742bc5acedd347894 (diff) | |
| download | rneovim-b87a1db5acbe9a1e210c20d625e5bee19240c3a4.tar.gz rneovim-b87a1db5acbe9a1e210c20d625e5bee19240c3a4.tar.bz2 rneovim-b87a1db5acbe9a1e210c20d625e5bee19240c3a4.zip | |
vim-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 vim/vim#4408)
https://github.com/vim/vim/commit/0ab190c05706b1c72e6e2ca4d990febfa81cf886
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_put.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim index 43a5d18cb3..d8a231c52e 100644 --- a/src/nvim/testdir/test_put.vim +++ b/src/nvim/testdir/test_put.vim @@ -104,3 +104,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 |