fix(spell): splice extmarks on :spellrepall (#23929)

This commit is contained in:
zeertzjq
2023-06-06 10:32:30 +08:00
committed by GitHub
parent 43f3209b07
commit eceb2dffce
2 changed files with 16 additions and 8 deletions

View File

@@ -1164,12 +1164,17 @@ describe('lua: nvim_buf_attach on_bytes', function()
end)
it("works with accepting spell suggestions", function()
local check_events = setup_eventcheck(verify, {"hallo"})
local check_events = setup_eventcheck(verify, {"hallo world", "hallo world"})
feed("gg0z=4<cr><cr>") -- accepts 'Hello'
check_events {
{ "test1", "bytes", 1, 3, 0, 0, 0, 0, 2, 2, 0, 2, 2 };
}
command("spellrepall") -- replaces whole words
check_events {
{ "test1", "bytes", 1, 4, 1, 0, 12, 0, 5, 5, 0, 5, 5 };
}
end)
it('works with :diffput and :diffget', function()