diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-13 16:33:20 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-02-14 07:49:31 +0800 |
commit | 820430dc0bb84011edae801262e64a10be7ebb9d (patch) | |
tree | ec1b2c9998953953f11630fa8b012f7ca6b54312 /src/nvim/os/input.c | |
parent | 5a8039a0cb544eac91c569439c61ba0a35950506 (diff) | |
download | rneovim-820430dc0bb84011edae801262e64a10be7ebb9d.tar.gz rneovim-820430dc0bb84011edae801262e64a10be7ebb9d.tar.bz2 rneovim-820430dc0bb84011edae801262e64a10be7ebb9d.zip |
fix(tui): exit on input eof
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 44ad0315a5..d472836d0a 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -470,11 +470,6 @@ static InbufPollResult inbuf_poll(int ms, MultiQueue *events) return input_eof ? kInputEof : kInputNone; } -void input_done(void) -{ - input_eof = true; -} - bool input_available(void) { return rbuffer_size(input_buffer) != 0; @@ -483,7 +478,7 @@ bool input_available(void) static void input_read_cb(Stream *stream, RBuffer *buf, size_t c, void *data, bool at_eof) { if (at_eof) { - input_done(); + input_eof = true; } assert(rbuffer_space(input_buffer) >= rbuffer_size(buf)); |