mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 12:35:00 +00:00
fix(decor): don't draw invalidated virtual lines (#29858)
This commit is contained in:
@@ -4948,6 +4948,28 @@ if (h->n_buckets < new_n_buckets) { // expand
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
it('not drawn when invalid', function()
|
||||
api.nvim_buf_set_lines(0, 0, -1, false, { 'foo', 'bar' })
|
||||
api.nvim_buf_set_extmark(0, ns, 0, 0, { virt_lines = {{{'VIRT1'}}}, invalidate = true })
|
||||
screen:expect({
|
||||
grid = [[
|
||||
^foo |
|
||||
VIRT1 |
|
||||
bar |
|
||||
{1:~ }|*8
|
||||
|
|
||||
]]
|
||||
})
|
||||
feed('dd')
|
||||
screen:expect({
|
||||
grid = [[
|
||||
^bar |
|
||||
{1:~ }|*10
|
||||
|
|
||||
]]
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('decorations: signs', function()
|
||||
|
||||
Reference in New Issue
Block a user