diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-03 08:04:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 08:04:24 +0200 |
commit | f96d1e6bc416fe0d1d11321234637695ff0e514e (patch) | |
tree | c9cf04d21a9fe8872dcda6e6256f455004e88872 /runtime/lua/vim/inspect.lua | |
parent | 30479417e808eac338025dbbfbd3724e158fb344 (diff) | |
download | rneovim-f96d1e6bc416fe0d1d11321234637695ff0e514e.tar.gz rneovim-f96d1e6bc416fe0d1d11321234637695ff0e514e.tar.bz2 rneovim-f96d1e6bc416fe0d1d11321234637695ff0e514e.zip |
tui: fix handling of bg response after suspend (#11145)
`tui_terminal_after_startup` gets called right after resuming from
suspending (via `Ctrl-z`) already (not delayed as with the startup
itself), and would set `waiting_for_bg_response` to false then directly.
This results in the terminal response not being processed then anymore,
and leaking into Neovim itself.
This changes it to try 5 times always, which means that it typically
would stop after a few characters of input from the user typically, e.g.
with tmux, which does not send a reply.
While it might be better to have something based on the time (e.g. only
wait for max 1s), this appears to be easier to do.
Fixes regression in 8a4ae3d.
Diffstat (limited to 'runtime/lua/vim/inspect.lua')
0 files changed, 0 insertions, 0 deletions