mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:9.1.0166: Internal error with blockwise getregion() in another buffer (#27819)
Problem: Internal error with blockwise getregion() in another buffer
Solution: Also change curwin->w_buffer when changing curbuf (zeertzjq)
closes: vim/vim#14179
5406eb8722
This commit is contained in:
@@ -1772,11 +1772,11 @@ func Test_visual_getregion()
|
||||
for type in ['v', 'V', "\<C-V>"]
|
||||
for exclusive in [v:false, v:true]
|
||||
call assert_equal(range(10)->mapnew('string(v:val)'),
|
||||
\ getregion([g:buf, 1, 1, 0], [g:buf, 10, 2, 0]),
|
||||
\ {'type': type, 'exclusive': exclusive })
|
||||
\ getregion([g:buf, 1, 1, 0], [g:buf, 10, 2, 0],
|
||||
\ {'type': type, 'exclusive': exclusive }))
|
||||
call assert_equal(range(10)->mapnew('string(v:val)'),
|
||||
\ getregion([g:buf, 10, 2, 0], [g:buf, 1, 1, 0]),
|
||||
\ {'type': type, 'exclusive': exclusive })
|
||||
\ getregion([g:buf, 10, 2, 0], [g:buf, 1, 1, 0],
|
||||
\ {'type': type, 'exclusive': exclusive }))
|
||||
endfor
|
||||
endfor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user