commit 371a74e4e1685f21e83c70eb8f0bd05c2ce24e49
parent d079c8cc5d2f15742fbda4040ac2e11a9cba615b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 17 Feb 2023 11:19:40 +0800
fix(tui): only forward stdin_fd on first attach (#22293)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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));