diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2021-01-28 19:25:31 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-02-08 19:08:42 +0100 |
commit | 3094bb4e3892b9b536d867d4cae0205046a888d4 (patch) | |
tree | c218e012f332aea62f4cbe9e07c0dd76f0e4b904 /test/functional/lua/buffer_updates_spec.lua | |
parent | b2b47e46187c59c9fcbfe31bdb2071af4c09a1a5 (diff) | |
download | rneovim-3094bb4e3892b9b536d867d4cae0205046a888d4.tar.gz rneovim-3094bb4e3892b9b536d867d4cae0205046a888d4.tar.bz2 rneovim-3094bb4e3892b9b536d867d4cae0205046a888d4.zip |
fix(buf_updates): send updates when putting past last line
Fixes #13710
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 |