forked from aniani/vim
patch 8.1.2375: no suffucient testing for registers
Problem: No suffucient testing for registers. Solution: Add more test cases. (Yegappan Lakshmanan, closes #5296) Fix that "p" on last virtual column of tab inserts spaces.
This commit is contained in:
@@ -428,3 +428,18 @@ 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
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user