diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2022-02-14 01:58:47 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2022-02-14 17:29:48 +0000 |
commit | f8b75e582215be5ed07aebb02cdbe69de8cad393 (patch) | |
tree | 57b8554ba458fb8ec084ea48d0afc74f7b28a84e /src/nvim/testdir/test_visual.vim | |
parent | d5d51308c0e531f6c2dec6b5570b3ffe04ab6b45 (diff) | |
download | rneovim-f8b75e582215be5ed07aebb02cdbe69de8cad393.tar.gz rneovim-f8b75e582215be5ed07aebb02cdbe69de8cad393.tar.bz2 rneovim-f8b75e582215be5ed07aebb02cdbe69de8cad393.zip |
vim-patch:8.2.3073: when cursor is move for block append wrong text is inserted
Problem: When cursor is move for block append wrong text is inserted.
Solution: Calculate an offset. (Christian Brabandt, closes vim/vim#8433,
closes vim/vim#8288)
https://github.com/vim/vim/commit/4067bd3604215b48e4b4201e28f9e401b08418e4
Diffstat (limited to 'src/nvim/testdir/test_visual.vim')
-rw-r--r-- | src/nvim/testdir/test_visual.vim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim index d05035b4e9..f95801cab5 100644 --- a/src/nvim/testdir/test_visual.vim +++ b/src/nvim/testdir/test_visual.vim @@ -866,11 +866,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" |