aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/extmark_spec.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-01-17 13:31:07 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-01-17 23:17:04 +0100
commit437d35dbf7d9ff6f6e561377f5d23d7e4ac4d565 (patch)
tree894e12d7a02b8889cc0fc3d6b249415572bb738c /test/functional/api/extmark_spec.lua
parent4615d46f93fb0b15a427f428bb1e652b4ccb873b (diff)
downloadrneovim-437d35dbf7d9ff6f6e561377f5d23d7e4ac4d565.tar.gz
rneovim-437d35dbf7d9ff6f6e561377f5d23d7e4ac4d565.tar.bz2
rneovim-437d35dbf7d9ff6f6e561377f5d23d7e4ac4d565.zip
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.lua4
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' })