tui: Flush input on timer_cb

This is required to have <esc> working correctly when the
`ttimeout`/`ttimeoutlen` options are set. Ref:
https://github.com/neovim/neovim/issues/2093#issuecomment-146506480
This commit is contained in:
Thiago de Arruda
2015-10-12 06:53:32 -03:00
parent b2ff868436
commit a3f048ee06

View File

@@ -249,6 +249,7 @@ static void tk_getkeys(TermInput *input, bool force)
static void timer_cb(TimeWatcher *watcher, void *data)
{
tk_getkeys(data, true);
flush_input(data, true);
}
static bool handle_bracketed_paste(TermInput *input)