diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-06 11:48:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 11:48:33 +0200 |
commit | d94db802277bd55dd14d59f88fcc935ee55820e2 (patch) | |
tree | 1263173da1f4b7c88e15348fa661b6ccac7d78e3 /test/functional | |
parent | 5abba97d77f2a5c4a47a68cad4063b4de303b95c (diff) | |
parent | 0f1b511f2302324684c3ed9ff586f51c2129694d (diff) | |
download | rneovim-d94db802277bd55dd14d59f88fcc935ee55820e2.tar.gz rneovim-d94db802277bd55dd14d59f88fcc935ee55820e2.tar.bz2 rneovim-d94db802277bd55dd14d59f88fcc935ee55820e2.zip |
Merge pull request #23415 from zeertzjq/sigwinch-redraw
fix(tui): redraw on SIGWINCH even if size didn't change
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 5fd3467949..b69867af89 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() |