diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-04-13 15:00:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 15:00:42 +0200 |
commit | c9817603cff5a5ca7ef4e4c12c8bf0e16d859e9a (patch) | |
tree | 2fa45a0d2001461cffed58cccd1a297724875178 /test/functional/lua/buffer_updates_spec.lua | |
parent | ef3f05c43267142aaf92f451d5da21f7c2ac638f (diff) | |
parent | ff43d9597e26d202051f977fe57058797b9f1c99 (diff) | |
download | rneovim-c9817603cff5a5ca7ef4e4c12c8bf0e16d859e9a.tar.gz rneovim-c9817603cff5a5ca7ef4e4c12c8bf0e16d859e9a.tar.bz2 rneovim-c9817603cff5a5ca7ef4e4c12c8bf0e16d859e9a.zip |
Merge pull request #14318 from chentau/extmark_luado
extmark: splice extmarks on :luado
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 18 |
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 eb29bcd90f..3cb14ca93f 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -871,6 +871,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" |