diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-30 07:21:45 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-04 02:09:28 +0200 |
commit | d8c7ff13352d7182826b5716ff3b6a66df241231 (patch) | |
tree | d9c451c4933a6fd60683ae2925abd3c2ae34d90d /src/nvim/os/input.c | |
parent | 1f300e08b8c0c35b2f3d79506ae9817cd8591624 (diff) | |
download | rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.tar.gz rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.tar.bz2 rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.zip |
cleanup, test interactive -E
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index dd44df2c3c..599487c345 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -34,7 +34,7 @@ typedef enum { kInputEof } InbufPollResult; -static Stream read_stream = {.closed = true}; +static Stream read_stream = { .closed = true }; // Input before UI starts. static RBuffer *input_buffer = NULL; static bool input_eof = false; static int global_fd = -1; @@ -50,7 +50,7 @@ void input_init(void) input_buffer = rbuffer_new(INPUT_BUFFER_SIZE + MAX_KEY_CODE_LEN); } -/// This is the global stream of user-input (or Ex-commands for "-es"). +/// Global TTY (or pipe for "-es") input stream, before UI starts. int input_global_fd(void) { return global_fd; @@ -109,7 +109,7 @@ int os_inchar(uint8_t *buf, int maxlen, int ms, int tb_change_cnt) } else { if ((result = inbuf_poll((int)p_ut)) == kInputNone) { if (read_stream.closed && silent_mode) { - // Drained input and eventloop: exit silent/batch-mode (-es/-Es). + // Drained eventloop & initial input; exit silent/batch-mode (-es/-Es). read_error_exit(); } |