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.
6f1f0ca3ed

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.
This commit is contained in:
zeertzjq
2022-01-13 18:26:36 +08:00
parent 9b04336445
commit e1b557d913
4 changed files with 110 additions and 3 deletions

View File

@@ -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'])