test(old): cherry-pick test_visual changes from v8.2.2945

59b262362f
This commit is contained in:
Sean Dewar 2022-02-14 13:26:42 +00:00
parent b7e6c1b525
commit d5d51308c0
No known key found for this signature in database
GPG Key ID: 08CC2C83AD41B581

View File

@ -871,6 +871,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 _