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.

Clear hover background highlights

Antonio Scandurrabef3b80bd458
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs
index fce2634e2bc..2e29793670d 100644
--- a/crates/editor2/src/element.rs
+++ b/crates/editor2/src/element.rs
@@ -412,12 +412,13 @@ impl EditorElement {
);
}
}
+
+ true
} else {
update_go_to_definition_link(editor, None, modifiers.command, modifiers.shift, cx);
hover_at(editor, None, cx);
+ false
}
-
- true
}
fn scroll(
diff --git a/crates/editor2/src/hover_popover.rs b/crates/editor2/src/hover_popover.rs
index bee95994e4b..5c8f403d4f7 100644
--- a/crates/editor2/src/hover_popover.rs
+++ b/crates/editor2/src/hover_popover.rs
@@ -144,8 +144,7 @@ pub fn hide_hover(editor: &mut Editor, cx: &mut ViewContext<Editor>) -> bool {
editor.hover_state.info_task = None;
editor.hover_state.triggered_from = None;
- // todo!()
- // editor.clear_background_highlights::<HoverState>(cx);
+ editor.clear_background_highlights::<HoverState>(cx);
if did_hide {
cx.notify();