aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-01 12:20:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-01 13:17:03 +0800
commit0f1b511f2302324684c3ed9ff586f51c2129694d (patch)
treec17ead138a088a45e6db7f29482ddc8a57c4c27e /test/functional
parenta803bff89c89cc63e549a3c791fa07d91d1106c8 (diff)
downloadrneovim-0f1b511f2302324684c3ed9ff586f51c2129694d.tar.gz
rneovim-0f1b511f2302324684c3ed9ff586f51c2129694d.tar.bz2
rneovim-0f1b511f2302324684c3ed9ff586f51c2129694d.zip
fix(tui): redraw on SIGWINCH even if size didn't change
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/terminal/tui_spec.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 069fbad803..f366c8a6d9 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -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()