diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-04-17 08:58:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 08:58:00 +0200 |
commit | 7de75f0993e804811fd8059fb945c93512461ede (patch) | |
tree | 1ac21ed858c1096837ab7a9dea5cca3bd7be4259 /test/functional/lua/buffer_updates_spec.lua | |
parent | a6504ec3398af114585db1d1134335d838bdb8d9 (diff) | |
parent | 5a36d413fbc6b34ea66df27b90ebd2f725475a77 (diff) | |
download | rneovim-7de75f0993e804811fd8059fb945c93512461ede.tar.gz rneovim-7de75f0993e804811fd8059fb945c93512461ede.tar.bz2 rneovim-7de75f0993e804811fd8059fb945c93512461ede.zip |
Merge pull request #14365 from chentau/extmark_delbytes_move
Extmarks: flush curbuf->deleted_bytes2 after calling do_move
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index 3cb14ca93f..3ec08de422 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -889,6 +889,23 @@ describe('lua: nvim_buf_attach on_bytes', function() end) + it("flushes deleted bytes on move", function() + local check_events = setup_eventcheck(verify, {"AAA", "BBB", "CCC", "DDD"}) + + feed(":.move+1<cr>") + + check_events { + { "test1", "bytes", 1, 5, 0, 0, 0, 1, 0, 4, 0, 0, 0 }; + { "test1", "bytes", 1, 5, 1, 0, 4, 0, 0, 0, 1, 0, 4 }; + } + + feed("jd2j") + + check_events { + { "test1", "bytes", 1, 6, 2, 0, 8, 2, 0, 8, 0, 0, 0 }; + } + end) + teardown(function() os.remove "Xtest-reload" os.remove "Xtest-undofile" |