From e06936125a628d8a61069f5fbce68394292db4df Mon Sep 17 00:00:00 2001 From: Tony Chen <36219739+chentau@users.noreply.github.com> Date: Wed, 6 Oct 2021 12:35:44 -0400 Subject: fix(extmarks): splice extmarks on nv_Undo #15920 --- test/functional/lua/buffer_updates_spec.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/functional/lua') diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index 073927bf22..aa92c36918 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -1050,6 +1050,19 @@ describe('lua: nvim_buf_attach on_bytes', function() } end) + it("sends updates on U", function() + feed("ggiAAABBB") + feed("gg$a CCC") + + local check_events = setup_eventcheck(verify, nil) + + feed("ggU") + + check_events { + { "test1", "bytes", 1, 6, 0, 7, 7, 0, 0, 0, 0, 3, 3 }; + } + end) + teardown(function() os.remove "Xtest-reload" os.remove "Xtest-undofile" -- cgit