diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 08:29:46 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 08:29:46 -0300 |
| commit | 5c5e0102f92938f433a3465c92818be810c1ef78 (patch) | |
| tree | 379cf5e47f2e281934236482d7a5f78db732b18b /src/replica.zig | |
| parent | 8640d280ebc48b0d2658aa13bee2f9ad933c39f3 (diff) | |
| parent | 3350156db428656fa8e583d1971663e1c4a215b0 (diff) | |
| download | pardes-5c5e0102f92938f433a3465c92818be810c1ef78.tar.gz pardes-5c5e0102f92938f433a3465c92818be810c1ef78.zip | |
integration: the client path's round 1 (the tty client drawing as the own terminal does, a detached session's deltas a unit a frame, the window client's wait, pardes-gui --detach as pardes) with addons in a client part 2 (a draw, ABI 3.2; the image kind where it is shown): no conflict; tui core-test 819/958 (139 skipped), shell-test 993/996, behaviour-test 273/273, replicas pass, pane-test 180/181; the window's suites and its frame corpus NOT run on this merge yet (disk)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/replica.zig')
| -rw-r--r-- | src/replica.zig | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/replica.zig b/src/replica.zig index 2cc7dd55..2a5404c5 100644 --- a/src/replica.zig +++ b/src/replica.zig @@ -762,12 +762,14 @@ pub const Replica = struct { const c = try pardes.dump.load(epoch, o, bytes, null); // The chrome's colours are local, never dumped: the restored theme's. pardes.colors.finishThemeInitialization(c); - // It runs a plain kind's code of its own (Addon.plainOps), each pane - // of one opened here from its record; another's panes are Shadows. - for (c.kinds.kinds[0..c.kinds.n], c.kinds.ops[0..c.kinds.n]) |*e, *ops| ops.* = pardes.Addon.plainOps(e); - @memset(c.kinds.ops[c.kinds.n..], null); - for (c.panes, 0..) |pslot, at| if (pslot) |pane| if (pane.addon) |s| if (c.kinds.byName(s.nameOf())) |k| if (c.kinds.ops[k]) |ops| { - pane.addon = try pardes.dump.plainHere(c, at, s, ops); + // It runs a plain kind's code of its own (Addon.plainOps), loaded + // at its first pane, each opened here from its record; another's + // panes are Shadows. + c.kinds.ops = @splat(null); + for (c.panes, 0..) |pslot, at| if (pslot) |pane| if (pane.addon) |s| if (c.kinds.byName(s.nameOf())) |k| { + if (c.kinds.ops[k] == null) c.kinds.ops[k] = pardes.Addon.plainOps(&c.kinds.kinds[k]); + // Refused (its file not here): the line saying it does not run here. + if (c.kinds.ops[k]) |ops| pane.addon = pardes.dump.plainHere(c, at, s, ops) catch s; }; // What loading queued (a watch, a theme asked for) is the // authority's errand, done there already: the session was dumped |
