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.

editor: Fix documentation tooltip reappearing after editor regains focus (#48924)

feeiyub165cd08ba9b
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 61051ec4b65..9fb18d414f1 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -25038,7 +25038,9 @@ impl Editor {
}
});
- if let Some(position_map) = self.last_position_map.clone() {
+ if let Some(position_map) = self.last_position_map.clone()
+ && !self.mouse_cursor_hidden
+ {
EditorElement::mouse_moved(
self,
&MouseMoveEvent {