mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.0477: block_editing errors out when using <enter> (#29294)
Problem: block_editing errors out when using <enter>
(Ali Rizvi-Santiago, after v9.1.0274)
Solution: Change ins_len from size_t to int so that the test
if ins_len is negative actually works properly
Add a test, so that this doesn't regress.
fixes: vim/vim#14960
1fb9eae579
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -2709,4 +2709,13 @@ func Test_visual_block_cursor_delete()
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_visual_block_cursor_insert_enter()
|
||||
new
|
||||
call setline(1, ['asdf asdf', 'asdf asdf', 'asdf asdf', 'asdf asdf'])
|
||||
call cursor(1, 5)
|
||||
exe ":norm! \<c-v>3jcw\<cr>"
|
||||
call assert_equal(['asdfw', 'asdf', 'asdfasdf', 'asdfasdf', 'asdfasdf'], getline(1, '$'))
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user