aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-06 10:32:30 +0800
committerGitHub <noreply@github.com>2023-06-06 10:32:30 +0800
commiteceb2dffce3908507092ffe425b1ceef5baeb1ab (patch)
tree66b2e0d0cb60ef26dcbb28e652781c09e3a9233a /test/functional/lua/buffer_updates_spec.lua
parent43f3209b070a8515a26a37917b85d0e682d7a3c7 (diff)
downloadrneovim-eceb2dffce3908507092ffe425b1ceef5baeb1ab.tar.gz
rneovim-eceb2dffce3908507092ffe425b1ceef5baeb1ab.tar.bz2
rneovim-eceb2dffce3908507092ffe425b1ceef5baeb1ab.zip
fix(spell): splice extmarks on :spellrepall (#23929)
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r--test/functional/lua/buffer_updates_spec.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua
index d415b708be..c19891a794 100644
--- a/test/functional/lua/buffer_updates_spec.lua
+++ b/test/functional/lua/buffer_updates_spec.lua
@@ -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()