diff options
author | chentau <tchen1998@gmail.com> | 2021-05-05 12:23:14 -0700 |
---|---|---|
committer | chentau <tchen1998@gmail.com> | 2021-05-06 20:40:26 -0700 |
commit | 37c8067226779f1b98a41454949c986f740f4e0e (patch) | |
tree | d715518822161444cc84b05bedfc16c8dce9c0fa /test/functional/lua/buffer_updates_spec.lua | |
parent | b227cedf82341813514da55baa48511eca4014b0 (diff) | |
download | rneovim-37c8067226779f1b98a41454949c986f740f4e0e.tar.gz rneovim-37c8067226779f1b98a41454949c986f740f4e0e.tar.bz2 rneovim-37c8067226779f1b98a41454949c986f740f4e0e.zip |
splice extmarks on every line for block visual paste
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index 5da8452a51..d4c65eae5b 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -936,6 +936,28 @@ describe('lua: nvim_buf_attach on_bytes', function() } end) + it("block visual paste", function() + local check_events = setup_eventcheck(verify, {"AAA", + "BBB", + "CCC", + "DDD", + "EEE", + "FFF"}) + funcs.setreg("a", "___") + feed([[gg0l<c-v>3jl"ap]]) + + check_events { + { "test1", "bytes", 1, 3, 0, 1, 1, 0, 2, 2, 0, 0, 0 }; + { "test1", "bytes", 1, 3, 1, 1, 3, 0, 2, 2, 0, 0, 0 }; + { "test1", "bytes", 1, 3, 2, 1, 5, 0, 2, 2, 0, 0, 0 }; + { "test1", "bytes", 1, 3, 3, 1, 7, 0, 2, 2, 0, 0, 0 }; + { "test1", "bytes", 1, 5, 0, 1, 1, 0, 0, 0, 0, 3, 3 }; + { "test1", "bytes", 1, 6, 1, 1, 6, 0, 0, 0, 0, 3, 3 }; + { "test1", "bytes", 1, 7, 2, 1, 11, 0, 0, 0, 0, 3, 3 }; + { "test1", "bytes", 1, 8, 3, 1, 16, 0, 0, 0, 0, 3, 3 }; + } + end) + teardown(function() os.remove "Xtest-reload" os.remove "Xtest-undofile" |