summaryrefslogtreecommitdiff
path: root/src/panes.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/panes.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/panes.zig')
-rw-r--r--src/panes.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 20523de6..095e215f 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -29,7 +29,7 @@ pub const Pane = struct {
/// the pane's opens and readers; the other views' share of it (views.zig).
pub const replica = .{
.local = .{ "pv", "pv_known" },
- .derived = .{ "wrap_line", "wrap_col", "wrap_pad", "wrap_n", "body_wrapped", "context_rows", "body_rows", "body_visible_rows", "context_row_limit", "geometry_key", "geometry_len", "view", "notices", "pan" },
+ .derived = .{ "wrap_line", "wrap_col", "wrap_pad", "wrap_n", "body_wrapped", "context_rows", "body_rows", "body_visible_rows", "context_row_limit", "geometry_key", "geometry_len", "notices", "pan" },
.authority = .{"fs"},
.len = .{ .{ "msg", "msg_len" }, .{ "msg_older", "msg_older_len" }, .{ "question", "question_len" }, .{ "shell_tail", "shell_tail_len" }, .{ "sel_snap", "nsel_snap" } },
// A picture's and a PDF's memory is their own allocators' (a dump
@@ -268,6 +268,9 @@ pub const Pane = struct {
geometry_key: u64 = 0,
geometry_len: usize = 0,
/// The session's part of the geometry, as of the last step (`sync`).
+ /// Digested and dumped, not made again: a key's move reads it before its
+ /// step's `sync` (Text.halfPageMove's scroll), and a core loaded from a
+ /// dump has had none (Replica.initDump).
view: SessionView = .{},
sel: [3]Sel = @splat(.{}),
pointer_selections: [3]?PointerSelection = @splat(null),