aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_visual.vim
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-02-03 01:10:33 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2022-02-14 17:29:49 +0000
commite662d86e8d3198ea77e1a6d0b9be7c09255de520 (patch)
tree203262ec6ba152bedcc82a89f05ad42fa678c4cc /src/nvim/testdir/test_visual.vim
parentf8b75e582215be5ed07aebb02cdbe69de8cad393 (diff)
downloadrneovim-e662d86e8d3198ea77e1a6d0b9be7c09255de520.tar.gz
rneovim-e662d86e8d3198ea77e1a6d0b9be7c09255de520.tar.bz2
rneovim-e662d86e8d3198ea77e1a6d0b9be7c09255de520.zip
vim-patch:8.2.4120: block insert goes over the end of the line
Problem: Block insert goes over the end of the line. Solution: Handle invalid byte better. Fix inserting the wrong text. https://github.com/vim/vim/commit/9f8c304c8a390ade133bac29963dc8e56ab14cbc
Diffstat (limited to 'src/nvim/testdir/test_visual.vim')
-rw-r--r--src/nvim/testdir/test_visual.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index f95801cab5..a2c93bd573 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -1242,6 +1242,15 @@ func Test_visual_block_ctrl_w_f()
au! BufNew
endfunc
+func Test_visual_block_append_invalid_char()
+ " this was going over the end of the line
+ new
+ call setline(1, [' let xxx', 'xxxxxˆ', 'xxxxxxxxxxx'])
+ exe "normal 0\<C-V>jjA-\<Esc>"
+ call assert_equal([' - let xxx', 'xxxxx -ˆ', 'xxxxxxxx-xxx'], getline(1, 3))
+ bwipe!
+endfunc
+
func Test_visual_reselect_with_count()
" this was causing an illegal memory access
let lines =<< trim END