Merge pull request #14318 from chentau/extmark_luado

extmark: splice extmarks on :luado
This commit is contained in:
Björn Linse
2021-04-13 15:00:42 +02:00
committed by GitHub
2 changed files with 24 additions and 2 deletions

View File

@@ -871,6 +871,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"