From 23102bc18e292aa8a4c3b84881723148b435f415 Mon Sep 17 00:00:00 2001 From: George Zhao Date: Wed, 17 Jan 2018 19:47:00 +0800 Subject: [PATCH] Fix bug, use &loop->uv replace loop. --- src/nvim/tui/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c index 698be02dbf..d64c630cf9 100644 --- a/src/nvim/tui/input.c +++ b/src/nvim/tui/input.c @@ -47,7 +47,7 @@ void term_input_init(TermInput *input, Loop *loop) termkey_set_canonflags(input->tk, curflags | TERMKEY_CANON_DELBS); // setup input handle #ifdef WIN32 - uv_tty_init(loop, &input->tty_in, 0, 1); + uv_tty_init(&loop->uv, &input->tty_in, 0, 1); uv_tty_set_mode(&input->tty_in, UV_TTY_MODE_RAW); rstream_init_stream(&input->read_stream, (uv_stream_t *)&input->tty_in, 0xfff); #else