mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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 #8495)
This commit is contained in:
@@ -1256,6 +1256,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)
|
||||
|
Reference in New Issue
Block a user