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
commit21f2affa16b01f48ee88a6070ae492537b8360e3
authorKyle L. Davis <kyle.l.davis57@gmail.com>
dateThu 11 Aug 2022, 21:27 (4 years ago)
parent7559b77
helix-term/src/commands.rs+1−1
@@ -4559,7 +4559,7 @@ fn shell_impl(
45594559 .stdout(Stdio::piped())
45604560 .stderr(Stdio::piped());
45614561
4562− if input.is_some() {
4562+ if input.is_some() || cfg!(windows) {
45634563 process.stdin(Stdio::piped());
45644564 }
45654565