aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-24 16:18:16 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-06 21:56:39 -0400
commitf807a7de04f6bca409bb9a1b2b07f53a90afb25c (patch)
tree3edbe13be9a980430cf740691ab832f258cd5fdc
parent343c226abf519a705e8c648a8d9f04d2b93e6b77 (diff)
downloadrneovim-f807a7de04f6bca409bb9a1b2b07f53a90afb25c.tar.gz
rneovim-f807a7de04f6bca409bb9a1b2b07f53a90afb25c.tar.bz2
rneovim-f807a7de04f6bca409bb9a1b2b07f53a90afb25c.zip
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) https://github.com/vim/vim/commit/2e94976abd1cd6b94db38d4f2a1cfd71808b8100
-rw-r--r--src/nvim/testdir/test_visual.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 7d7ff75cfc..756a455ebd 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -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: '