aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorchentau <tchen1998@gmail.com>2021-04-07 22:45:08 -0700
committerchentau <tchen1998@gmail.com>2021-04-12 11:33:50 -0700
commitff43d9597e26d202051f977fe57058797b9f1c99 (patch)
treecfc8c593eb611373b824f2c5fa4e5ca1be7a4a2d /test/functional/lua/buffer_updates_spec.lua
parentdde89730b453fd2b84860e58bb8893c92417128b (diff)
downloadrneovim-ff43d9597e26d202051f977fe57058797b9f1c99.tar.gz
rneovim-ff43d9597e26d202051f977fe57058797b9f1c99.tar.bz2
rneovim-ff43d9597e26d202051f977fe57058797b9f1c99.zip
extmark: splice extmarks on :luado
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r--test/functional/lua/buffer_updates_spec.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua
index 6d7d9b4d8b..e79a5b7673 100644
--- a/test/functional/lua/buffer_updates_spec.lua
+++ b/test/functional/lua/buffer_updates_spec.lua
@@ -802,6 +802,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"