mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(tui): only forward stdin_fd on first attach (#22293)
This commit is contained in:
parent
d079c8cc5d
commit
371a74e4e1
@ -93,6 +93,7 @@ void ui_client_attach(int width, int height, char *term)
|
|||||||
PUT_C(opts, "stdout_tty", BOOLEAN_OBJ(stdout_isatty));
|
PUT_C(opts, "stdout_tty", BOOLEAN_OBJ(stdout_isatty));
|
||||||
if (ui_client_forward_stdin) {
|
if (ui_client_forward_stdin) {
|
||||||
PUT_C(opts, "stdin_fd", INTEGER_OBJ(UI_CLIENT_STDIN_FD));
|
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));
|
ADD_C(args, DICTIONARY_OBJ(opts));
|
||||||
|
Loading…
Reference in New Issue
Block a user