From c0913330d9a0138878e03b28d689d500414b424e Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Mon, 1 Aug 2022 20:33:12 +0800 Subject: [PATCH] fix windows clippy --- crates/nu-command/src/system/run_external.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index 375b5a808..f5f2e5b99 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -126,6 +126,7 @@ impl ExternalCommand { let ctrlc = engine_state.ctrlc.clone(); let mut process = self.create_process(&input, false, head)?; + prepare_to_foreground(&mut process); let child; #[cfg(windows)] @@ -143,7 +144,6 @@ impl ExternalCommand { #[cfg(not(windows))] { - prepare_to_foreground(&mut process); child = process.spawn() }