From 3d4da8184f41307d8348f7e0595bba238e8976b4 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 23:48:44 -0300 Subject: panes: a pane's view (Pane.view, and a parked view's share of it) is digested and dumped, no longer derived: a key's move reads it before its step syncs (halfPageMove, ensureCursorVisible, through File.geometry), and a core loaded from a dump had the default, Wrap on and no row heights, so a window that joined after `SPC t w` scrolled further at the terminal view's next Ctrl-D (the box soak's `pane 23.file.scroll`, seed 7: win207-3 at its join); replica.zig's test, main's fails at `pane 0.file.scroll` Co-Authored-By: Claude Opus 5.5 --- src/views.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/views.zig') diff --git a/src/views.zig b/src/views.zig index 58d7a1f7..b1786f83 100644 --- a/src/views.zig +++ b/src/views.zig @@ -80,8 +80,9 @@ pub const PaneView = struct { cols: u16 = 1, rows: u16 = 1, - /// In a dump (`Dumped`): what a pane's step works out again. - pub const replica = .{ .derived = .{ "view", "notices", "pan" } }; + /// In a dump (`Dumped`): what a pane's step works out again. Its `view` + /// is dumped: the step after `unpark` reads it before it syncs. + pub const replica = .{ .derived = .{ "notices", "pan" } }; }; /// A view not live: its share of the session, and the serial of each pane -- cgit v1.3