Skip to content

Commit

Permalink
Fix outline panel navigation in unnamed files (zed-industries#23273)
Browse files Browse the repository at this point in the history
Closes zed-industries#23250

Release Notes:

- Fixed outline panel navigation in unnamed files
  • Loading branch information
SomeoneToIgnore authored Jan 17, 2025
1 parent c6f2326 commit 37dcca6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/outline_panel/src/outline_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,9 @@ impl OutlinePanel {
}
}
} else {
offset.y = -(active_editor.read(cx).file_header_size() as f32);
if multi_buffer_snapshot.as_singleton().is_none() {
offset.y = -(active_editor.read(cx).file_header_size() as f32);
}
if show_excerpt_controls {
offset.y -= expand_excerpt_control_height;
}
Expand Down

0 comments on commit 37dcca6

Please sign in to comment.