Skip to content

Commit 2e94976

Browse files
committed
patch 8.1.0007: no test for "o" and "O" in Visual block mode
Problem: No test for "o" and "O" in Visual block mode. Solution: Add a test. (Dominique Pelle, closes #2932)
1 parent a772baf commit 2e94976

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/testdir/test_visual.vim

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,25 @@ func Test_blockwise_visual()
155155
enew!
156156
endfunc
157157

158+
" Test swapping corners in blockwise visual mode with o and O
159+
func Test_blockwise_visual_o_O()
160+
enew!
161+
162+
exe "norm! 10i.\<Esc>Y4P3lj\<C-V>4l2jr "
163+
exe "norm! gvO\<Esc>ra"
164+
exe "norm! gvO\<Esc>rb"
165+
exe "norm! gvo\<C-c>rc"
166+
exe "norm! gvO\<C-c>rd"
167+
168+
call assert_equal(['..........',
169+
\ '...c d..',
170+
\ '... ..',
171+
\ '...a b..',
172+
\ '..........'], getline(1, '$'))
173+
174+
enew!
175+
endfun
176+
158177
" Test Virtual replace mode.
159178
func Test_virtual_replace()
160179
if exists('&t_kD')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
7,
764766
/**/
765767
6,
766768
/**/

0 commit comments

Comments
 (0)