mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.2945: some buffer related code is not tested
Problem: Some buffer related code is not tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8320)
This commit is contained in:
committed by
Bram Moolenaar
parent
1328bde9d4
commit
59b262362f
@@ -811,6 +811,10 @@ func Test_visual_block_mode()
|
||||
" reproducible if this operation is performed manually.
|
||||
"call assert_equal(['aaxa', 'bbxb', 'ccxc'], getline(1, '$'))
|
||||
call assert_equal(['aaxa', 'bbba', 'ccca'], getline(1, '$'))
|
||||
" Repeat the previous test but use 'l' to move the cursor instead of '$'
|
||||
call setline(1, ['aaa', 'bbb', 'ccc'])
|
||||
exe "normal! gg2l\<C-V>2jA\<Left>x"
|
||||
call assert_equal(['aaxa', 'bbxb', 'ccxc'], getline(1, '$'))
|
||||
|
||||
" Change a characterwise motion to a blockwise motion using CTRL-V
|
||||
%d _
|
||||
|
Reference in New Issue
Block a user