diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim index 3a7d273c4..5b181d309 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -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.\Y4P3lj\4l2jr " + exe "norm! gvO\ra" + exe "norm! gvO\rb" + exe "norm! gvo\rc" + exe "norm! gvO\rd" + + call assert_equal(['..........', + \ '...c d..', + \ '... ..', + \ '...a b..', + \ '..........'], getline(1, '$')) + + enew! +endfun + " Test Virtual replace mode. func Test_virtual_replace() if exists('&t_kD') diff --git a/src/version.c b/src/version.c index 4093a8c00..f18e711fb 100644 --- a/src/version.c +++ b/src/version.c @@ -761,6 +761,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 7, /**/ 6, /**/