aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-17 11:19:40 +0800
committerGitHub <noreply@github.com>2023-02-17 11:19:40 +0800
commit371a74e4e1685f21e83c70eb8f0bd05c2ce24e49 (patch)
tree40e8cf61bb8c25453d1e2f937abd654319815411 /src
parentd079c8cc5d2f15742fbda4040ac2e11a9cba615b (diff)
downloadrneovim-371a74e4e1685f21e83c70eb8f0bd05c2ce24e49.tar.gz
rneovim-371a74e4e1685f21e83c70eb8f0bd05c2ce24e49.tar.bz2
rneovim-371a74e4e1685f21e83c70eb8f0bd05c2ce24e49.zip
fix(tui): only forward stdin_fd on first attach (#22293)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ui_client.c1
1 files changed, 1 insertions, 0 deletions
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));