mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
vim-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 vim/vim#2932)
2e94976abd
This commit is contained in:
parent
343c226abf
commit
f807a7de04
@ -126,6 +126,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()
|
||||
throw 'skipped: TODO: '
|
||||
|
Loading…
Reference in New Issue
Block a user