mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
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:
@@ -249,6 +249,7 @@ static void tk_getkeys(TermInput *input, bool force)
|
|||||||
static void timer_cb(TimeWatcher *watcher, void *data)
|
static void timer_cb(TimeWatcher *watcher, void *data)
|
||||||
{
|
{
|
||||||
tk_getkeys(data, true);
|
tk_getkeys(data, true);
|
||||||
|
flush_input(data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool handle_bracketed_paste(TermInput *input)
|
static bool handle_bracketed_paste(TermInput *input)
|
||||||
|
Reference in New Issue
Block a user