Mercurial > vim
changeset 13978:81c324144452 v8.1.0007
patch 8.1.0007: no test for "o" and "O" in Visual block mode
commit https://github.com/vim/vim/commit/2e94976abd1cd6b94db38d4f2a1cfd71808b8100
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 20 14:06:38 2018 +0200
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 https://github.com/vim/vim/issues/2932)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 20 May 2018 14:15:05 +0200 |
parents | 84f238b76021 |
children | 240fa79f3241 |
files | src/testdir/test_visual.vim src/version.c |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.\<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')