Skip to content

Commit

Permalink
outline_panel: Fix outline panel should autoscroll when selection has…
Browse files Browse the repository at this point in the history
… changed (zed-industries#14038)

Fixed selection changed, outline panel not autoscroll.

Release Notes:

- N/A
  • Loading branch information
CharlesChen0823 authored Jul 10, 2024
1 parent d01d764 commit 2f2047a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/outline_panel/src/outline_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2f2047a

Please sign in to comment.