Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed May 20, 2018
1 parent a772baf commit 2e94976
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/testdir/test_visual.vim
Expand Up @@ -155,6 +155,25 @@ func Test_blockwise_visual()
enew!
endfunc

" Test swapping corners in blockwise visual mode with o and O
func Test_blockwise_visual_o_O()
enew!

exe "norm! 10i.\<Esc>Y4P3lj\<C-V>4l2jr "
exe "norm! gvO\<Esc>ra"
exe "norm! gvO\<Esc>rb"
exe "norm! gvo\<C-c>rc"
exe "norm! gvO\<C-c>rd"

call assert_equal(['..........',
\ '...c d..',
\ '... ..',
\ '...a b..',
\ '..........'], getline(1, '$'))

enew!
endfun

" Test Virtual replace mode.
func Test_virtual_replace()
if exists('&t_kD')
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
7,
/**/
6,
/**/
Expand Down

0 comments on commit 2e94976

Please sign in to comment.