summaryrefslogtreecommitdiff
path: root/src/views.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 23:48:44 -0300
committerGabriel Schneider <[email protected]>2026-10-30 23:54:48 -0300
commit3d4da8184f41307d8348f7e0595bba238e8976b4 (patch)
treeef65983504dc5614b92d29253825201015eac41d /src/views.zig
parent793081277cb46143e3ccd80ae1d868febacf3fbd (diff)
downloadpardes-3d4da8184f41307d8348f7e0595bba238e8976b4.tar.gz
pardes-3d4da8184f41307d8348f7e0595bba238e8976b4.zip
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 <[email protected]>
Diffstat (limited to 'src/views.zig')
-rw-r--r--src/views.zig5
1 files changed, 3 insertions, 2 deletions
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