From 371a74e4e1685f21e83c70eb8f0bd05c2ce24e49 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 17 Feb 2023 11:19:40 +0800 Subject: fix(tui): only forward stdin_fd on first attach (#22293) --- src/nvim/ui_client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/ui_client.c b/src/nvim/ui_client.c index df0a26c6ee..0bd9490368 100644 --- a/src/nvim/ui_client.c +++ b/src/nvim/ui_client.c @@ -93,6 +93,7 @@ void ui_client_attach(int width, int height, char *term) PUT_C(opts, "stdout_tty", BOOLEAN_OBJ(stdout_isatty)); if (ui_client_forward_stdin) { PUT_C(opts, "stdin_fd", INTEGER_OBJ(UI_CLIENT_STDIN_FD)); + ui_client_forward_stdin = false; // stdin shouldn't be forwarded again #22292 } } ADD_C(args, DICTIONARY_OBJ(opts)); -- cgit