summaryrefslogtreecommitdiff
path: root/src/body_layer.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/body_layer.zig')
-rw-r--r--src/body_layer.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/body_layer.zig b/src/body_layer.zig
index 5bffb691..5a8d51e5 100644
--- a/src/body_layer.zig
+++ b/src/body_layer.zig
@@ -170,9 +170,8 @@ pub fn buttonInks(th: *const colors.Theme) [3][3]u8 {
/// rail is the grid's alone.
pub fn joinBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: Rect, id: usize, active: bool, rail: pardes.Region) !void {
if (pane.file == null) return renderBody(p, s, arena, pane, r, id, active, rail, null);
- // Made afresh for every frame from the pane as it is, as a step reading
- // it would make it (File.geometry): never only by drawing.
- pane.geometry_key = 0;
+ // The pane's geometry as it is (File.geometry): made by the step that
+ // moved it if one read it, else here, and the same either way.
panes.File.geometry(pane);
// Which rows are context rows is decided by the text the body shows: a
// layer taller than the grid's rows when there are any.