diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-07 00:26:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-16 09:13:44 +0200 |
commit | e0763e94ade67c99f9d9f46cd51299b174969927 (patch) | |
tree | 0ae7d12be715d564a4664683b453d67ede1870af /test/functional/ui/screen.lua | |
parent | 6a90f53862d9f75f7aeea350944c466aa85f11a2 (diff) | |
download | rneovim-e0763e94ade67c99f9d9f46cd51299b174969927.tar.gz rneovim-e0763e94ade67c99f9d9f46cd51299b174969927.tar.bz2 rneovim-e0763e94ade67c99f9d9f46cd51299b174969927.zip |
test: tty-test.c: restore win32 SIGWINCH handler
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index c1df7ede43..a6b7fb2997 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -73,8 +73,6 @@ local helpers = require('test.functional.helpers')(nil) local request, run, uimeths = helpers.request, helpers.run, helpers.uimeths -local iswin, nvim, retry = helpers.iswin, helpers.nvim, helpers.retry - local dedent = helpers.dedent local Screen = {} @@ -176,16 +174,6 @@ function Screen:try_resize(columns, rows) -- Give ourselves a chance to _handle_resize, which requires using -- self.sleep() (for the resize notification) rather than run() self:sleep(0.1) - - -- XXX: On Windows we don't bother to handle SIGWINCH. - -- CTRL-Q invokes the handler in tty-test.c directly. - -- uv_tty_update_virtual_window() _does_ emit SIGWINCH, but: - -- "SIGWINCH may not always be delivered in a timely manner; libuv - -- will only detect size changes when the cursor is being moved." - -- http://docs.libuv.org/en/v1.x/signal.html - if iswin() and 0 ~= nvim('eval', "exists('b:terminal_job_id')") then - nvim('command', [[call jobsend(b:terminal_job_id, "\<C-Q>")]]) - end end -- Asserts that `expected` eventually matches the screen state. |