mirror of
https://github.com/neovim/neovim.git
synced 2026-07-19 07:31:35 +00:00
fix(grid): keep grid sizes updated during redraw #39757
Problem: Assert tripped when window is resized during update_screen(). Solution: Re-allocate grid when resizing happens during update_screen().
This commit is contained in:
@@ -1028,4 +1028,28 @@ describe('messages2', function()
|
||||
{1:~ }{4:hello}|
|
||||
]])
|
||||
end)
|
||||
|
||||
it('no crash for resized grid during redraw #39075', function()
|
||||
exec_lua(function()
|
||||
vim.api.nvim_set_decoration_provider(vim.api.nvim_create_namespace(''), {
|
||||
on_win = function()
|
||||
print('\n')
|
||||
end,
|
||||
})
|
||||
end)
|
||||
feed(':')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*12
|
||||
{16::}^ |
|
||||
]])
|
||||
feed('f')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*9
|
||||
{3: }|
|
||||
|*2
|
||||
{16::}{15:f}^ |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user