diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-01-19 10:49:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 10:49:13 +0100 |
commit | 0b36cbbafd99e60844faafea026a89a3355a4ac4 (patch) | |
tree | 84f2f2e1c1abe2e5b70e111d65faa057ac1d9f18 /test/functional/api/extmark_spec.lua | |
parent | 96d0f4a2d71662032b3a17224a0a9ef0a1861d6a (diff) | |
parent | 18334a4a0cd9e5130237fc42dcd79d0a7d8e7d73 (diff) | |
download | rneovim-0b36cbbafd99e60844faafea026a89a3355a4ac4.tar.gz rneovim-0b36cbbafd99e60844faafea026a89a3355a4ac4.tar.bz2 rneovim-0b36cbbafd99e60844faafea026a89a3355a4ac4.zip |
Merge pull request #27061 from luukvbaal/extmark
fix(extmarks): do not remove invalid marks from decor upon deletion
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 54f4aaab03..19ad26fa86 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1712,6 +1712,10 @@ describe('API/extmarks', function() aaa bbb ccc |*2 | ]]) + -- decor is not removed twice + command('d3') + api.nvim_buf_del_extmark(0, ns, 1) + command('silent undo') -- mark is deleted with undo_restore == false set_extmark(ns, 1, 0, 0, { invalidate = true, undo_restore = false, sign_text = 'S1' }) set_extmark(ns, 2, 1, 0, { invalidate = true, undo_restore = false, sign_text = 'S2' }) |