mirror of
https://github.com/neovim/neovim.git
synced 2025-12-05 22:22:44 +00:00
extmark: splice extmarks on :luado
This commit is contained in:
@@ -802,6 +802,24 @@ describe('lua: nvim_buf_attach on_bytes', function()
|
||||
|
||||
end)
|
||||
|
||||
it(":luado", function()
|
||||
local check_events = setup_eventcheck(verify, {"abc", "12345"})
|
||||
|
||||
command(".luado return 'a'")
|
||||
|
||||
check_events {
|
||||
{ "test1", "bytes", 1, 3, 0, 0, 0, 0, 3, 3, 0, 1, 1 };
|
||||
}
|
||||
|
||||
command("luado return 10")
|
||||
|
||||
check_events {
|
||||
{ "test1", "bytes", 1, 4, 0, 0, 0, 0, 1, 1, 0, 2, 2 };
|
||||
{ "test1", "bytes", 1, 5, 1, 0, 3, 0, 5, 5, 0, 2, 2 };
|
||||
}
|
||||
|
||||
end)
|
||||
|
||||
teardown(function()
|
||||
os.remove "Xtest-reload"
|
||||
os.remove "Xtest-undofile"
|
||||
|
||||
Reference in New Issue
Block a user