fix(decorations): nvim_buf_set_extmark breaks conceal #19010

Closes #19007

Co-authored-by: bfredl <bjorn.linse@gmail.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
ii14
2022-06-19 19:33:54 +02:00
committed by Christian Clason
parent 38928b5cc2
commit 40e13c8d95
3 changed files with 17 additions and 1 deletions

View File

@@ -438,6 +438,7 @@ describe('extmark decorations', function()
[23] = {foreground = Screen.colors.Magenta1, background = Screen.colors.LightGrey};
[24] = {bold = true};
[25] = {background = Screen.colors.LightRed};
[26] = {background=Screen.colors.DarkGrey, foreground=Screen.colors.LightGrey};
}
ns = meths.create_namespace 'test'
@@ -819,6 +820,20 @@ end]]
]]}
helpers.assert_alive()
end)
it('conceal #19007', function()
screen:try_resize(50, 5)
insert('foo\n')
command('let &conceallevel=2')
meths.buf_set_extmark(0, ns, 0, 0, {end_col=0, end_row=2, conceal='X'})
screen:expect([[
{26:X} |
^ |
{1:~ }|
{1:~ }|
|
]])
end)
end)
describe('decorations: virtual lines', function()