diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2025-01-09 17:58:37 +0100 |
---|---|---|
committer | luukvbaal <luukvbaal@gmail.com> | 2025-01-10 08:14:38 +0100 |
commit | 87610d82db912cda8877198c25dabbf2bb08f0aa (patch) | |
tree | aafe4e99c501da418590ce0501bdbde8aa526c4d /test/functional/api/extmark_spec.lua | |
parent | a37784ad831fdf31e7eeafdd41f7d3cb81b1a07f (diff) | |
download | rneovim-87610d82db912cda8877198c25dabbf2bb08f0aa.tar.gz rneovim-87610d82db912cda8877198c25dabbf2bb08f0aa.tar.bz2 rneovim-87610d82db912cda8877198c25dabbf2bb08f0aa.zip |
fix(decor): set invalid flag for end of invalidated paired marks
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 6a94881093..c8d6110207 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1794,6 +1794,16 @@ describe('API/extmarks', function() eq({}, get_extmark_by_id(ns, 4, {})) end) + it('no crash checking invalided flag of sign pair end key #31856', function() + api.nvim_buf_set_lines(0, 0, 1, false, { '', '' }) + api.nvim_set_option_value('signcolumn', 'auto:2', {}) + set_extmark(ns, 1, 0, 0, { sign_text = 'S1', invalidate = true, end_row = 0 }) + set_extmark(ns, 2, 1, 0, { sign_text = 'S2', end_row = 1 }) + command('d') + api.nvim_buf_clear_namespace(0, ns, 0, -1) + n.assert_alive() + end) + it('can set a URL', function() local url1 = 'https://example.com' local url2 = 'http://127.0.0.1' |