Restore the terminal cursor settings
This commit is contained in:
parent
51caa74349
commit
ec7db3f528
1 changed files with 12 additions and 0 deletions
|
@ -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| {
|
let hyperlink_tooltip = last_hovered_word.clone().map(|hovered_word| {
|
||||||
div()
|
div()
|
||||||
.size_full()
|
.size_full()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue