diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-17 11:19:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 11:19:40 +0800 |
commit | 371a74e4e1685f21e83c70eb8f0bd05c2ce24e49 (patch) | |
tree | 40e8cf61bb8c25453d1e2f937abd654319815411 /src/nvim/ui_client.c | |
parent | d079c8cc5d2f15742fbda4040ac2e11a9cba615b (diff) | |
download | rneovim-371a74e4e1685f21e83c70eb8f0bd05c2ce24e49.tar.gz rneovim-371a74e4e1685f21e83c70eb8f0bd05c2ce24e49.tar.bz2 rneovim-371a74e4e1685f21e83c70eb8f0bd05c2ce24e49.zip |
fix(tui): only forward stdin_fd on first attach (#22293)
Diffstat (limited to 'src/nvim/ui_client.c')
-rw-r--r-- | src/nvim/ui_client.c | 1 |
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)); |