summaryrefslogtreecommitdiff
path: root/src/testdir/test_visual.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-29 18:54:35 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-29 18:54:35 +0200
commit4067bd3604215b48e4b4201e28f9e401b08418e4 (patch)
treeeb5f46e8381b176826d3954db8722155d87c207a /src/testdir/test_visual.vim
parent7d7bcc6ba01454c1cbb1dcbf5f11c3a4051535d6 (diff)
downloadvim-git-4067bd3604215b48e4b4201e28f9e401b08418e4.tar.gz
patch 8.2.3073: when cursor is move for block append wrong text is insertedv8.2.3073
Problem: When cursor is move for block append wrong text is inserted. Solution: Calculate an offset. (Christian Brabandt, closes #8433, closes #8288)
Diffstat (limited to 'src/testdir/test_visual.vim')
-rw-r--r--src/testdir/test_visual.vim6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim
index fbd3ca4fc..789ff6f60 100644
--- a/src/testdir/test_visual.vim
+++ b/src/testdir/test_visual.vim
@@ -807,11 +807,7 @@ func Test_visual_block_mode()
%d _
call setline(1, ['aaa', 'bbb', 'ccc'])
exe "normal $\<C-V>2jA\<Left>x"
- " BUG: Instead of adding x as the third character in all the three lines,
- " 'a' is added in the second and third lines at the end. This bug is not
- " reproducible if this operation is performed manually.
- "call assert_equal(['aaxa', 'bbxb', 'ccxc'], getline(1, '$'))
- call assert_equal(['aaxa', 'bbba', 'ccca'], getline(1, '$'))
+ call assert_equal(['aaxa', 'bbxb', 'ccxc'], getline(1, '$'))
" Repeat the previous test but use 'l' to move the cursor instead of '$'
call setline(1, ['aaa', 'bbb', 'ccc'])
exe "normal! gg2l\<C-V>2jA\<Left>x"