Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix multicursors not being added when clicking on line numbers (#28263)
neunato52ea501f4f44
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex d722f71d8bb..4e3ace49494 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -2972,7 +2972,6 @@ impl Editor {let display_map = self.display_map.update(cx, |map, cx| map.snapshot(cx));let buffer = &display_map.buffer_snapshot;- let newest_selection = self.selections.newest_anchor().clone();let position = display_map.clip_point(position, Bias::Left);let start;@@ -3047,8 +3046,6 @@ impl Editor {} else {if !add {s.clear_disjoint();- } else if click_count > 1 {- s.delete(newest_selection.id)}s.set_pending_anchor_range(start..end, mode);