diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-01-13 18:26:36 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-14 07:31:21 +0800 |
| commit | e1b557d9130c94f72c2d836bf814a884c470809f (patch) | |
| tree | 2cf2f5bb7ba1e498f91f1eeb13c3ada821d97776 /src/nvim/testdir/test_visual.vim | |
| parent | 9b04336445c85b5bc4920d18072066e8ad01d6af (diff) | |
| download | rneovim-e1b557d9130c94f72c2d836bf814a884c470809f.tar.gz rneovim-e1b557d9130c94f72c2d836bf814a884c470809f.tar.bz2 rneovim-e1b557d9130c94f72c2d836bf814a884c470809f.zip | |
vim-patch:8.1.2375: no suffucient testing for registers
Problem: No suffucient testing for registers.
Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#5296)
Fix that "p" on last virtual column of tab inserts spaces.
https://github.com/vim/vim/commit/6f1f0ca3edf395102ff3109c998d81300c8be3c9
This patch doesn't actually change any behavior in Nvim, because Nvim
always has vartabs feature.
I modified a line in the test because of #6137.
Diffstat (limited to 'src/nvim/testdir/test_visual.vim')
| -rw-r--r-- | src/nvim/testdir/test_visual.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim index 8344598486..d58ca92a2f 100644 --- a/src/nvim/testdir/test_visual.vim +++ b/src/nvim/testdir/test_visual.vim @@ -433,6 +433,19 @@ func Test_Visual_Block() close! endfunc +" Test for 'p'ut in visual block mode +func Test_visual_block_put() + enew + + call append(0, ['One', 'Two', 'Three']) + normal gg + yank + call feedkeys("jl\<C-V>ljp", 'xt') + call assert_equal(['One', 'T', 'Tee', 'One', ''], getline(1, '$')) + + enew! +endfunc + func Test_visual_put_in_block() new call setline(1, ['xxxx', 'y∞yy', 'zzzz']) |