mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 07:32:40 +00:00
bytetrack: add blockwise paste test
This commit is contained in:
committed by
KillTheMule
parent
ba515622fb
commit
c1a740ae33
@@ -477,6 +477,36 @@ describe('lua: nvim_buf_attach on_bytes', function()
|
||||
{ "test1", "bytes", 1, 5, 0, 0, 0, 0, 0, 0, 0, 3, 3 };
|
||||
}
|
||||
end)
|
||||
|
||||
it('blockwise paste', function()
|
||||
local check_events = setup_eventcheck(verify, {'1', '2', '3'})
|
||||
feed('1G0')
|
||||
feed('y<C-v>2j')
|
||||
feed('G0')
|
||||
feed('p')
|
||||
check_events {
|
||||
{ "test1", "bytes", 1, 3, 2, 1, 5, 0, 0, 0, 0, 1, 1 };
|
||||
{ "test1", "bytes", 1, 3, 3, 0, 7, 0, 0, 0, 0, 2, 2 };
|
||||
{ "test1", "bytes", 1, 3, 4, 0, 10, 0, 0, 0, 0, 2, 2 };
|
||||
}
|
||||
|
||||
feed('2G0')
|
||||
feed('p')
|
||||
check_events {
|
||||
{ "test1", "bytes", 1, 4, 1, 1, 3, 0, 0, 0, 0, 1, 1 };
|
||||
{ "test1", "bytes", 1, 4, 2, 1, 6, 0, 0, 0, 0, 1, 1 };
|
||||
{ "test1", "bytes", 1, 4, 3, 1, 10, 0, 0, 0, 0, 1, 1 };
|
||||
}
|
||||
|
||||
feed('1G0')
|
||||
feed('P')
|
||||
check_events {
|
||||
{ "test1", "bytes", 1, 5, 0, 0, 0, 0, 0, 0, 0, 1, 1 };
|
||||
{ "test1", "bytes", 1, 5, 1, 0, 3, 0, 0, 0, 0, 1, 1 };
|
||||
{ "test1", "bytes", 1, 5, 2, 0, 7, 0, 0, 0, 0, 1, 1 };
|
||||
}
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
describe('(with verify) handles', function()
|
||||
|
||||
Reference in New Issue
Block a user