mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
fix(embed): handle stdio in server properly
Rename stdin/stdout in the server, so that RPC data won't get corrupted. This also restores the use of stderr to write directly to the terminal.
This commit is contained in:
@@ -41,8 +41,11 @@ uint64_t ui_client_start_server(int argc, char **argv)
|
||||
}
|
||||
args[args_idx++] = NULL;
|
||||
|
||||
CallbackReader on_err = CALLBACK_READER_INIT;
|
||||
on_err.fwd_err = true;
|
||||
|
||||
Channel *channel = channel_job_start(args, CALLBACK_READER_INIT,
|
||||
CALLBACK_READER_INIT, CALLBACK_NONE,
|
||||
on_err, CALLBACK_NONE,
|
||||
false, true, true, false, kChannelStdinPipe,
|
||||
NULL, 0, 0, NULL, &exit_status);
|
||||
if (ui_client_forward_stdin) {
|
||||
|
Reference in New Issue
Block a user