mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
a05bbc60ea
commit
d81f78713b
@ -1315,6 +1315,26 @@ describe('extmark decorations', function()
|
|||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('conceal works just before truncated double-width char #21486', function()
|
||||||
|
screen:try_resize(40, 4)
|
||||||
|
meths.buf_set_lines(0, 0, -1, true, {'', ('a'):rep(37) .. '<>古'})
|
||||||
|
meths.buf_set_extmark(0, ns, 1, 37, {end_col=39, conceal=''})
|
||||||
|
command('setlocal conceallevel=2')
|
||||||
|
screen:expect{grid=[[
|
||||||
|
^ |
|
||||||
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa{1:>} |
|
||||||
|
古 |
|
||||||
|
|
|
||||||
|
]]}
|
||||||
|
feed('j')
|
||||||
|
screen:expect{grid=[[
|
||||||
|
|
|
||||||
|
^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<>{1:>}|
|
||||||
|
古 |
|
||||||
|
|
|
||||||
|
]]}
|
||||||
|
end)
|
||||||
|
|
||||||
it('avoids redraw issue #20651', function()
|
it('avoids redraw issue #20651', function()
|
||||||
exec_lua[[
|
exec_lua[[
|
||||||
vim.cmd.normal'10oXXX'
|
vim.cmd.normal'10oXXX'
|
||||||
|
Loading…
Reference in New Issue
Block a user