aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-27 18:55:21 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-27 18:55:21 +0800
commitf2d84df4a856810276eb83b08d5c51d5c6407374 (patch)
treed73792c25054d0468966beb911fc8098796f45e5 /src/nvim/testdir
parent3d0149f9848e22e7eb15652b1ec01d5920bd680a (diff)
downloadrneovim-f2d84df4a856810276eb83b08d5c51d5c6407374.tar.gz
rneovim-f2d84df4a856810276eb83b08d5c51d5c6407374.tar.bz2
rneovim-f2d84df4a856810276eb83b08d5c51d5c6407374.zip
vim-patch:8.2.3095: with 'virtualedit' set to "block" block selection is wrong
Problem: With 'virtualedit' set to "block" block selection is wrong after using "$". (Marco Trosi) Solution: Compute the longest selected line. (closes vim/vim#8495) https://github.com/vim/vim/commit/b17ab86e7b8712206aa9ea7198c28db969e25936
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_visual.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index b087c88c35..76274fb038 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -1124,6 +1124,9 @@ func Test_visual_block_with_virtualedit()
call term_sendkeys(buf, "\<C-V>gg$")
call VerifyScreenDump(buf, 'Test_visual_block_with_virtualedit', {})
+ call term_sendkeys(buf, "\<Esc>gg\<C-V>G$")
+ call VerifyScreenDump(buf, 'Test_visual_block_with_virtualedit2', {})
+
" clean up
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)