diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-06-05 20:59:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-05 20:59:22 +0200 |
commit | 59b262362f26b3aaea1eeb0078adc33eed59863e (patch) | |
tree | 4b20477712f90b3c4e666c5338b673dbd1866057 /src/testdir/test_visual.vim | |
parent | 1328bde9d406aa1292e92673fa8a026889424e79 (diff) |
patch 8.2.2945: some buffer related code is not testedv8.2.2945
Problem: Some buffer related code is not tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8320)
Diffstat (limited to 'src/testdir/test_visual.vim')
-rw-r--r-- | src/testdir/test_visual.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim index b368c32b1f..51ef5ae812 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -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 _ |