diff options
author | Tony Chen <36219739+chentau@users.noreply.github.com> | 2021-10-06 12:35:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 09:35:44 -0700 |
commit | e06936125a628d8a61069f5fbce68394292db4df (patch) | |
tree | 6610f0928f0c17cac791922630ee60b15f81eede /test/functional/lua/buffer_updates_spec.lua | |
parent | d0c0878b3e8b2d2b80fa56038caea1f69c5d5499 (diff) | |
download | rneovim-e06936125a628d8a61069f5fbce68394292db4df.tar.gz rneovim-e06936125a628d8a61069f5fbce68394292db4df.tar.bz2 rneovim-e06936125a628d8a61069f5fbce68394292db4df.zip |
fix(extmarks): splice extmarks on nv_Undo #15920
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
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("ggiAAA<cr>BBB") + feed("<esc>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" |