Mercurial > vim
comparison src/testdir/test_visual.vim @ 27251:85f56e16da9b v8.2.4154
patch 8.2.4154: ml_get error when exchanging windows in Visual mode
Commit: https://github.com/vim/vim/commit/05b27615481e72e3b338bb12990fb3e0c2ecc2a9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 20 13:32:50 2022 +0000
patch 8.2.4154: ml_get error when exchanging windows in Visual mode
Problem: ml_get error when exchanging windows in Visual mode.
Solution: Correct end of Visual area when entering another buffer.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Jan 2022 14:45:03 +0100 |
parents | 776db9e02b61 |
children | c9a6c79998b2 |
comparison
equal
deleted
inserted
replaced
27250:ac404623b8d7 | 27251:85f56e16da9b |
---|---|
1316 call setline(1, ['xxxxx', repeat('0', 1350), "\t", repeat('x', 60)]) | 1316 call setline(1, ['xxxxx', repeat('0', 1350), "\t", repeat('x', 60)]) |
1317 exe "normal gg0\<C-V>GI" .. repeat('0', 1320) .. "\<Esc>" | 1317 exe "normal gg0\<C-V>GI" .. repeat('0', 1320) .. "\<Esc>" |
1318 bwipe! | 1318 bwipe! |
1319 endfunc | 1319 endfunc |
1320 | 1320 |
1321 " this was causing an ml_get error | |
1322 func Test_visual_exchange_windows() | |
1323 enew! | |
1324 new | |
1325 call setline(1, ['foo', 'bar']) | |
1326 exe "normal G\<C-V>gg\<C-W>\<C-X>OO\<Esc>" | |
1327 bwipe! | |
1328 bwipe! | |
1329 endfunc | |
1330 | |
1321 | 1331 |
1322 " vim: shiftwidth=2 sts=2 expandtab | 1332 " vim: shiftwidth=2 sts=2 expandtab |