From a1a6031c6a4eb5d0e6b7b86264f565fd8f0a8807 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Tue, 19 Aug 2025 16:08:12 -0600 Subject: [PATCH] Close stdin --- crates/zed/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 04325b22e5..fe3a2c1a72 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -38,7 +38,7 @@ use std::{ env, io::{self, IsTerminal}, path::{Path, PathBuf}, - process, + process::{self, Stdio}, sync::Arc, }; use theme::{ @@ -822,6 +822,10 @@ pub fn main() { let status = smol::process::Command::new(&selection_change_command) .arg(cursor.worktree_path.as_ref()) .arg(cursor_position_arg) + .stdin(Stdio::null()) + // todo! It'd be better to distinguish the output in logs. + .stdout(Stdio::inherit()) + .stderr(Stdio::inherit()) .status() .await; match status {