diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs index fce2634e2bc22178385b65c9ad94352afc630ee7..2e29793670dd9407649f65777f3ad18f58a62c3a 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 bee95994e4b858bb2b693d033d5e12ef76a3a273..5c8f403d4f7d768d764f5665f45e31863b00e733 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) -> bool { editor.hover_state.info_task = None; editor.hover_state.triggered_from = None; - // todo!() - // editor.clear_background_highlights::(cx); + editor.clear_background_highlights::(cx); if did_hide { cx.notify();