Skip to content

Commit

Permalink
Fix conditional setting of stdin handle on Windows (#3379)
Browse files Browse the repository at this point in the history
* Revert 3121353

* Switch to conditional compilation

* Run formatter

* Switch from conditional compilation to compile-time bool
  • Loading branch information
AceofSpades5757 authored Aug 12, 2022
1 parent 7559b77 commit 21f2aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 21f2aff

Please sign in to comment.