From dd63e25f230e64555a8bc43fff876805a1761068 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 13 Jul 2024 04:02:38 +0300 Subject: [PATCH] Revert `hold: true` for macOS tasks (#14376) Otherwise, ctrl-c makes them stuck being held from time to time Follow-up of https://github.com/zed-industries/zed/pull/13898 that reverts the macOS-related part of the PR. Release Notes: - N/A --- crates/terminal/src/terminal.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 3fedfcf4be..ccd6d98137 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -346,7 +346,11 @@ impl TerminalBuilder { alacritty_terminal::tty::Options { shell: alac_shell, working_directory: working_directory.clone(), + #[cfg(target_os = "linux")] hold: !matches!(shell.clone(), Shell::System), + // with hold: true, macOS gets tasks stuck on ctrl-c interrupts periodically + #[cfg(not(target_os = "linux"))] + hold: false, env: env.into_iter().collect(), } };