mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
splice extmarks on every line for block visual paste
This commit is contained in:
@@ -936,6 +936,28 @@ describe('lua: nvim_buf_attach on_bytes', function()
|
||||
}
|
||||
end)
|
||||
|
||||
it("block visual paste", function()
|
||||
local check_events = setup_eventcheck(verify, {"AAA",
|
||||
"BBB",
|
||||
"CCC",
|
||||
"DDD",
|
||||
"EEE",
|
||||
"FFF"})
|
||||
funcs.setreg("a", "___")
|
||||
feed([[gg0l<c-v>3jl"ap]])
|
||||
|
||||
check_events {
|
||||
{ "test1", "bytes", 1, 3, 0, 1, 1, 0, 2, 2, 0, 0, 0 };
|
||||
{ "test1", "bytes", 1, 3, 1, 1, 3, 0, 2, 2, 0, 0, 0 };
|
||||
{ "test1", "bytes", 1, 3, 2, 1, 5, 0, 2, 2, 0, 0, 0 };
|
||||
{ "test1", "bytes", 1, 3, 3, 1, 7, 0, 2, 2, 0, 0, 0 };
|
||||
{ "test1", "bytes", 1, 5, 0, 1, 1, 0, 0, 0, 0, 3, 3 };
|
||||
{ "test1", "bytes", 1, 6, 1, 1, 6, 0, 0, 0, 0, 3, 3 };
|
||||
{ "test1", "bytes", 1, 7, 2, 1, 11, 0, 0, 0, 0, 3, 3 };
|
||||
{ "test1", "bytes", 1, 8, 3, 1, 16, 0, 0, 0, 0, 3, 3 };
|
||||
}
|
||||
end)
|
||||
|
||||
teardown(function()
|
||||
os.remove "Xtest-reload"
|
||||
os.remove "Xtest-undofile"
|
||||
|
||||
Reference in New Issue
Block a user