fix(tui): redraw on SIGWINCH even if size didn't change

(cherry picked from commit 0f1b511f23)
This commit is contained in:
zeertzjq
2023-05-01 12:20:07 +08:00
committed by github-actions[bot]
parent 13d8cca951
commit c464df84f7
2 changed files with 27 additions and 5 deletions

View File

@@ -1565,6 +1565,29 @@ describe('TUI', function()
{5:-- TERMINAL --} |
]])
end)
it('redraws on SIGWINCH even if terminal size is unchanged #23411', function()
child_session:request('nvim_echo', {{'foo'}}, false, {})
screen:expect([[
{1: } |
{4:~ }|
{4:~ }|
{4:~ }|
{5:[No Name] }|
foo |
{3:-- TERMINAL --} |
]])
exec_lua([[vim.loop.kill(vim.fn.jobpid(vim.bo.channel), 'sigwinch')]])
screen:expect([[
{1: } |
{4:~ }|
{4:~ }|
{4:~ }|
{5:[No Name] }|
|
{3:-- TERMINAL --} |
]])
end)
end)
describe('TUI', function()