aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-01-13 10:59:46 +0100
committerGitHub <noreply@github.com>2024-01-13 10:59:46 +0100
commit2dc439c672facaeb8e51ef6aa20efc0e7092eee2 (patch)
tree88de265c78d9a710c22399ccdb5058bd5edb5836 /test/functional/lua/buffer_updates_spec.lua
parent89b0f5ac5a29799ad9effa1dad3c4f274b09d570 (diff)
parente5d9b15044d56acd48569b3ca7ac9dabdeaa750e (diff)
downloadrneovim-2dc439c672facaeb8e51ef6aa20efc0e7092eee2.tar.gz
rneovim-2dc439c672facaeb8e51ef6aa20efc0e7092eee2.tar.bz2
rneovim-2dc439c672facaeb8e51ef6aa20efc0e7092eee2.zip
Merge pull request #26734 from bfredl/splitaroo
fix(buffer_updates): correct buffer updates when splitting empty line
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r--test/functional/lua/buffer_updates_spec.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua
index ba298acc7e..714e1b951f 100644
--- a/test/functional/lua/buffer_updates_spec.lua
+++ b/test/functional/lua/buffer_updates_spec.lua
@@ -1073,6 +1073,15 @@ describe('lua: nvim_buf_attach on_bytes', function()
}
end)
+ it('visual paste 2: splitting an empty line', function()
+ local check_events = setup_eventcheck(verify, { 'abc', '{', 'def', '}' })
+ feed('ggyyjjvi{p')
+ check_events {
+ { 'test1', 'bytes', 1, 6, 2, 0, 6, 1, 0, 4, 0, 0, 0 },
+ { 'test1', 'bytes', 1, 6, 2, 0, 6, 0, 0, 0, 2, 0, 5 },
+ }
+ end)
+
it('nvim_buf_set_lines', function()
local check_events = setup_eventcheck(verify, { 'AAA', 'BBB' })