Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal_view: Show hollow cursor when bar/underline is unfocused (#53713)
João Soares7d7ec655e713
diff --git a/crates/terminal_view/src/terminal_element.rs b/crates/terminal_view/src/terminal_element.rsindex d1c6b324498..1e07e1c49d4 100644--- a/crates/terminal_view/src/terminal_element.rs+++ b/crates/terminal_view/src/terminal_element.rs@@ -1162,7 +1162,9 @@ impl Element for TerminalElement {let (shape, text) = match cursor.shape {AlacCursorShape::Block if !focused => (CursorShape::Hollow, None),AlacCursorShape::Block => (CursorShape::Block, Some(cursor_text)),+ AlacCursorShape::Underline if !focused => (CursorShape::Hollow, None),AlacCursorShape::Underline => (CursorShape::Underline, None),+ AlacCursorShape::Beam if !focused => (CursorShape::Hollow, None),AlacCursorShape::Beam => (CursorShape::Bar, None),AlacCursorShape::HollowBlock => (CursorShape::Hollow, None),AlacCursorShape::Hidden => unreachable!(),