File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,6 +155,25 @@ func Test_blockwise_visual()
155155 enew !
156156endfunc
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.
159178func Test_virtual_replace ()
160179 if exists (' &t_kD' )
Original file line number Diff line number Diff line change @@ -761,6 +761,8 @@ static char *(features[]) =
761761
762762static int included_patches [] =
763763{ /* Add new patch number below this line */
764+ /**/
765+ 7 ,
764766/**/
765767 6 ,
766768/**/
You can’t perform that action at this time.
0 commit comments