diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-09-06 08:16:59 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-11-25 09:37:00 +0100 |
commit | 85bc6630c0a8259c713383c8787e65f92e24e600 (patch) | |
tree | 9ee249d6ecff439c1e35d56267b3598343a4fe54 /src/nvim/os | |
parent | 9acd7bfe25b5ea2b31ffbbdbd201f5f09afc4237 (diff) | |
download | rneovim-85bc6630c0a8259c713383c8787e65f92e24e600.tar.gz rneovim-85bc6630c0a8259c713383c8787e65f92e24e600.tar.bz2 rneovim-85bc6630c0a8259c713383c8787e65f92e24e600.zip |
input: only change mode of input fd if there is an input fd
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 31e06ce404..7d6f2abd7f 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -37,7 +37,7 @@ typedef enum { static Stream read_stream = {.closed = true}; static RBuffer *input_buffer = NULL; static bool input_eof = false; -static int global_fd = 0; +static int global_fd = -1; static int events_enabled = 0; static bool blocking = false; |