mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 18:58:18 +00:00
fix(decor): set invalid flag for end of invalidated paired marks
(cherry picked from commit 87610d82db
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
87440e7bc5
commit
2bc5e1be0f
@@ -1797,6 +1797,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'
|
||||
|
Reference in New Issue
Block a user