Fix outline panel navigation in unnamed files (#23273)
Closes https://github.com/zed-industries/zed/issues/23250 Release Notes: - Fixed outline panel navigation in unnamed files
This commit is contained in:
parent
c6f2326a29
commit
37dcca62b7
1 changed files with 3 additions and 1 deletions
|
@ -1066,7 +1066,9 @@ impl OutlinePanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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 {
|
if show_excerpt_controls {
|
||||||
offset.y -= expand_excerpt_control_height;
|
offset.y -= expand_excerpt_control_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue