Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert `hold: true` for macOS tasks (#14376)

Kirill Bulatovdd63e25f230e
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs
index 3fedfcf4be7..ccd6d98137b 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(),
}
};