From a3f048ee06dea15490d7b874d295c3fc850cdc51 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 12 Oct 2015 06:53:32 -0300 Subject: [PATCH] tui: Flush input on timer_cb This is required to have working correctly when the `ttimeout`/`ttimeoutlen` options are set. Ref: https://github.com/neovim/neovim/issues/2093#issuecomment-146506480 --- src/nvim/tui/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c index 32b3f1583c..654b857301 100644 --- a/src/nvim/tui/input.c +++ b/src/nvim/tui/input.c @@ -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)