From a1906c23ddab6fa4d15bc5ceddee97df8034d8cb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 10 Feb 2025 11:55:08 +0100 Subject: fix(ui): Windows :detach is opt-in Problem: On Windows, spawning the `nvim --embed` server with `detach=true` breaks various `tt.setup_child_nvim` tests. Solution: Make this behavior opt-in with an env var, temporarily. --- src/nvim/event/proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/event') diff --git a/src/nvim/event/proc.c b/src/nvim/event/proc.c index 2955693687..e32bbbc29a 100644 --- a/src/nvim/event/proc.c +++ b/src/nvim/event/proc.c @@ -438,9 +438,9 @@ static void on_proc_exit(Proc *proc) ILOG("child exited: pid=%d status=%d" PRIu64, proc->pid, proc->status); // XXX: This assumes the TUI never spawns any other processes...? - // if (ui_client_channel_id) { - // exit_on_closed_chan(proc->status); - // } + if (ui_client_channel_id) { + exit_on_closed_chan(proc->status); + } // Process has terminated, but there could still be data to be read from the // OS. We are still in the libuv loop, so we cannot call code that polls for -- cgit