diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-13 16:33:20 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-02-14 07:49:31 +0800 |
commit | 820430dc0bb84011edae801262e64a10be7ebb9d (patch) | |
tree | ec1b2c9998953953f11630fa8b012f7ca6b54312 /test | |
parent | 5a8039a0cb544eac91c569439c61ba0a35950506 (diff) | |
download | rneovim-820430dc0bb84011edae801262e64a10be7ebb9d.tar.gz rneovim-820430dc0bb84011edae801262e64a10be7ebb9d.tar.bz2 rneovim-820430dc0bb84011edae801262e64a10be7ebb9d.zip |
fix(tui): exit on input eof
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 31e1f27363..4e62354ed8 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -2412,6 +2412,11 @@ describe("TUI as a client", function() exec_lua([[vim.loop.kill(vim.fn.jobpid(vim.bo.channel), 'sigterm')]]) screen:expect({any = '%[Process exited 1%]'}) + eq(0, meths.get_vvar('shell_error')) + -- exits on input eof #22244 + funcs.system({nvim_prog, '--server', server_pipe, '--remote-ui'}) + eq(1, meths.get_vvar('shell_error')) + client_super:close() server:close() end) |