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.

Restore the terminal cursor settings

Mikaylaec7db3f52898
diff --git a/crates/terminal_view/src/terminal_element.rs b/crates/terminal_view/src/terminal_element.rs
index d936716032a..bcaf147af23 100644
--- a/crates/terminal_view/src/terminal_element.rs
+++ b/crates/terminal_view/src/terminal_element.rs
@@ -451,6 +451,18 @@ impl TerminalElement {
}
});
+ let interactive_text_bounds = InteractiveBounds {
+ bounds,
+ stacking_order: cx.stacking_order().clone(),
+ };
+ if interactive_text_bounds.visibly_contains(&cx.mouse_position(), cx) {
+ if self.can_navigate_to_selected_word && last_hovered_word.is_some() {
+ cx.set_cursor_style(gpui::CursorStyle::PointingHand)
+ } else {
+ cx.set_cursor_style(gpui::CursorStyle::IBeam)
+ }
+ }
+
let hyperlink_tooltip = last_hovered_word.clone().map(|hovered_word| {
div()
.size_full()