Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix go to definition split (#24990)
Anthony Eid3ee4edc404e7
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 67fdc790c01..44d659addb8 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -11600,7 +11600,9 @@ impl Editor {let range = editor.range_for_match(&range);let range = collapse_multiline_range(range);- if Some(&target.buffer) == editor.buffer.read(cx).as_singleton().as_ref() {+ if !split+ && Some(&target.buffer) == editor.buffer.read(cx).as_singleton().as_ref()+ {editor.go_to_singleton_buffer_range(range.clone(), window, cx);} else {window.defer(cx, move |window, cx| {