Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Prevent terminal being a single column wide (#7471)
Conrad Irwin90cd3b5e8749
diff --git a/crates/terminal_view/src/terminal_element.rs b/crates/terminal_view/src/terminal_element.rsindex 66ef42bc46e..7ddb5ad988c 100644--- a/crates/terminal_view/src/terminal_element.rs+++ b/crates/terminal_view/src/terminal_element.rs@@ -450,6 +450,13 @@ impl TerminalElement {let mut size = bounds.size.clone();size.width -= gutter;+ // https://github.com/zed-industries/zed/issues/2750+ // if the terminal is one column wide, rendering 🦀+ // causes alacritty to misbehave.+ if size.width < cell_width * 2.0 {+ size.width = cell_width * 2.0;+ }+TerminalSize::new(line_height, cell_width, size)};