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.

outline_panel: Fix outline panel should autoscroll when selection has changed (#14038)

CharlesChen08232f2047ab2207
diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs
index acda4ee6687..6d87cbd706d 100644
--- a/crates/outline_panel/src/outline_panel.rs
+++ b/crates/outline_panel/src/outline_panel.rs
@@ -1207,6 +1207,7 @@ impl OutlinePanel {
self.selected_entry = Some(entry_with_selection);
self.update_cached_entries(None, cx);
+ self.autoscroll(cx);
}
fn render_excerpt(