diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-12 06:53:32 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-12 07:01:18 -0300 |
commit | a3f048ee06dea15490d7b874d295c3fc850cdc51 (patch) | |
tree | 7f216dfa2c46eb7f5d0f43273a54b623e6b8d23b | |
parent | b2ff868436f09dd482a1ad7eaa28cc23657017f0 (diff) | |
download | rneovim-a3f048ee06dea15490d7b874d295c3fc850cdc51.tar.gz rneovim-a3f048ee06dea15490d7b874d295c3fc850cdc51.tar.bz2 rneovim-a3f048ee06dea15490d7b874d295c3fc850cdc51.zip |
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
-rw-r--r-- | src/nvim/tui/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |