mirror of
https://github.com/neovim/neovim.git
synced 2026-07-16 06:10:39 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user