From 21f2affa16b01f48ee88a6070ae492537b8360e3 Mon Sep 17 00:00:00 2001 From: "Kyle L. Davis" Date: Thu, 11 Aug 2022 21:27:18 -0500 Subject: [PATCH] Fix conditional setting of stdin handle on Windows (#3379) * Revert 3121353c6ab2fbc5fced28f075c7fc45b53b661e * Switch to conditional compilation * Run formatter * Switch from conditional compilation to compile-time bool --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 17d908a8..f1cc5966 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4559,7 +4559,7 @@ fn shell_impl( .stdout(Stdio::piped()) .stderr(Stdio::piped()); - if input.is_some() { + if input.is_some() || cfg!(windows) { process.stdin(Stdio::piped()); }