Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fire markdown link on mouse down
Juliaa09ee3a41b2a
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 3fc47f48e9a..9c1e0b3c181 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -154,7 +154,7 @@ pub fn render_parsed_markdown<Tag: 'static>(});cx.scene().push_mouse_region(MouseRegion::new::<(RenderedMarkdown, Tag)>(view_id, region_id, bounds)- .on_click::<Editor, _>(MouseButton::Left, move |_, _, cx| {+ .on_down::<Editor, _>(MouseButton::Left, move |_, _, cx| {cx.platform().open_url(&url)}),);