diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-09-19 18:12:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 18:12:44 +0200 |
commit | 905c2eb359fc21995c6c0151b169b43c66b287fa (patch) | |
tree | cfc2e278cdfbfdb3f6cf55a3af6d5eaf9095f480 | |
parent | cea2417f30bf728cd818311b1988e0ce223011d8 (diff) | |
parent | 3610d0091ff82172e03cdb8bfbcd8b641aa2ad39 (diff) | |
download | rneovim-905c2eb359fc21995c6c0151b169b43c66b287fa.tar.gz rneovim-905c2eb359fc21995c6c0151b169b43c66b287fa.tar.bz2 rneovim-905c2eb359fc21995c6c0151b169b43c66b287fa.zip |
Merge pull request #12939 from bfredl/pastetest
test: buffer updates: add visual charwise paste test
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index 805e880663..439cc12192 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -438,6 +438,20 @@ describe('lua: nvim_buf_attach on_bytes', function() { "test1", "bytes", 1, 4, 1, 0, 1, 3, 0, 48, 0, 0, 0 }; } end) + + it("visual charwise paste", function() + local check_events = setup_eventcheck(verify, {'1234567890'}) + funcs.setreg('a', '___') + + feed '1G1|vll' + check_events {} + + feed '"ap' + check_events { + { "test1", "bytes", 1, 3, 0, 0, 0, 0, 3, 3, 0, 0, 0 }; + { "test1", "bytes", 1, 5, 0, 0, 0, 0, 0, 0, 0, 3, 3 }; + } + end) end describe('(with verify) handles', function() |