From 0ca3f03c19287cf03b53775aadaf1c18071bba87 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sun, 27 Sep 2015 11:59:48 -0300 Subject: tui: Fix queueing of large chunks of input Take the return value of input_enqueue into consideration, waiting for the main thread to consume input. Close #1714 #3377. --- src/nvim/tui/input.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nvim/tui/input.h') diff --git a/src/nvim/tui/input.h b/src/nvim/tui/input.h index 033f53b4e2..d7ee2b9e52 100644 --- a/src/nvim/tui/input.h +++ b/src/nvim/tui/input.h @@ -10,10 +10,14 @@ typedef struct term_input { int in_fd; bool paste_enabled; + bool waiting; TermKey *tk; TimeWatcher timer_handle; Loop *loop; Stream read_stream; + RBuffer *key_buffer; + uv_mutex_t key_buffer_mutex; + uv_cond_t key_buffer_cond; } TermInput; #ifdef INCLUDE_GENERATED_DECLARATIONS -- cgit