Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Fix ctrl+drag/drop to duplicate selected text (#45611)
David Budkedc40f2155f91
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 2c3eb5b996f..da6bfbc176a 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -1022,6 +1022,10 @@ impl EditorElement {&& hovered_link_modifier&& mouse_down_hovered_link_modifier&& text_hitbox.is_hovered(window)+ && !matches!(+ editor.selection_drag_state,+ SelectionDragState::Dragging { .. }+ ){let point = position_map.point_for_position(mouse_position);editor.handle_click_hovered_link(point, event.modifiers(), window, cx);