diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-02-08 20:29:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 20:29:59 +0100 |
commit | 38ea2ce342e0b0c5e1410a5d936b91d19fb9d4bb (patch) | |
tree | c218e012f332aea62f4cbe9e07c0dd76f0e4b904 /test/functional/lua/buffer_updates_spec.lua | |
parent | b2b47e46187c59c9fcbfe31bdb2071af4c09a1a5 (diff) | |
parent | 3094bb4e3892b9b536d867d4cae0205046a888d4 (diff) | |
download | rneovim-38ea2ce342e0b0c5e1410a5d936b91d19fb9d4bb.tar.gz rneovim-38ea2ce342e0b0c5e1410a5d936b91d19fb9d4bb.tar.bz2 rneovim-38ea2ce342e0b0c5e1410a5d936b91d19fb9d4bb.zip |
Merge pull request #13842 from vigoux/update-last-line
fix(buf_updates): send updates when putting past last line
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-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 6087f9e7d6..6c2615eebd 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -507,6 +507,20 @@ describe('lua: nvim_buf_attach on_bytes', function() end) + it("linewise paste", function() + local check_events = setup_eventcheck(verify, origlines) + + feed'yyp' + check_events { + { "test1", "bytes", 1, 3, 1, 0, 16, 0, 0, 0, 1, 0, 16 }; + } + + feed'Gyyp' + check_events { + { "test1", "bytes", 1, 4, 8, 0, 130, 0, 0, 0, 1, 0, 18 }; + } + end) + it('inccomand=nosplit and substitute', function() if verify then pending("Verification can't be done when previewing") end |