diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-12 07:19:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 07:19:30 +0800 |
commit | 6481da3015fd6cf136e752c9123078223c50d91c (patch) | |
tree | 565a2380273bfbabe9f749e015afc4d7ae8a5483 /test | |
parent | cf156377e80232aa904b92e4af29dd6c61952401 (diff) | |
download | rneovim-6481da3015fd6cf136e752c9123078223c50d91c.tar.gz rneovim-6481da3015fd6cf136e752c9123078223c50d91c.tar.bz2 rneovim-6481da3015fd6cf136e752c9123078223c50d91c.zip |
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
https://github.com/vim/vim/commit/5406eb8722bddb6a04876956f9a53c1752994851
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_visual.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/old/testdir/test_visual.vim b/test/old/testdir/test_visual.vim index 74742abc5d..d952400367 100644 --- a/test/old/testdir/test_visual.vim +++ b/test/old/testdir/test_visual.vim @@ -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 |