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.

Hide hover popover when mouse hovers over negative space (#9173)

Antonio Scandurra830e10792100
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 33e81faabd8..b3fbdf2525e 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -543,6 +543,8 @@ impl EditorElement {
if let Some(point) = point_for_position.as_valid() {
hover_at(editor, Some(point), cx);
Self::update_visible_cursor(editor, point, position_map, cx);
+ } else {
+ hover_at(editor, None, cx);
}
} else {
editor.hide_hovered_link(cx);