aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-12 07:19:30 +0800
committerGitHub <noreply@github.com>2024-03-12 07:19:30 +0800
commit6481da3015fd6cf136e752c9123078223c50d91c (patch)
tree565a2380273bfbabe9f749e015afc4d7ae8a5483 /test
parentcf156377e80232aa904b92e4af29dd6c61952401 (diff)
downloadrneovim-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.vim8
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