Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Focus editor when confirming outline item

Antonio Scandurra3c56f6d5c12b
diff --git a/crates/outline2/src/outline.rs b/crates/outline2/src/outline.rs
index 9d578c68316..f3d1f327da7 100644
--- a/crates/outline2/src/outline.rs
+++ b/crates/outline2/src/outline.rs
@@ -243,6 +243,7 @@ impl PickerDelegate for OutlineViewDelegate {
s.select_ranges([position..position])
});
active_editor.highlight_rows(None);
+ active_editor.focus(cx);
}
});