diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-11 21:36:42 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-11 21:36:42 +0100 |
commit | 5406eb8722bddb6a04876956f9a53c1752994851 (patch) | |
tree | 50169d806614315333842ebf51d3145c662bba02 /src/testdir/test_visual.vim | |
parent | cb942cc4cac7accb4aa01445e6d1e84e098d55a4 (diff) |
patch 9.1.0166: Internal error with blockwise getregion() in another bufferv9.1.0166
Problem: Internal error with blockwise getregion() in another buffer
Solution: Also change curwin->w_buffer when changing curbuf (zeertzjq)
closes: #14179
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_visual.vim')
-rw-r--r-- | src/testdir/test_visual.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim index ca13966975..fd174a9f1c 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -1768,11 +1768,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 |