summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 11:29:28 -0300
committerGabriel Schneider <[email protected]>2026-11-26 11:29:40 -0300
commit3d60aa05ec1a6f9ed535186be6c6c2850c71b24d (patch)
treee55587fb9d1ec5f55c55fa81b7d81f3a91bf5375 /core/dump.zig
parentadd0837dc1927389096cbaaf65b7e1a42028eafc (diff)
parent8723462d8e02bc9d78b5004de38b910e83540575 (diff)
downloadpardes-3d60aa05ec1a6f9ed535186be6c6c2850c71b24d.tar.gz
pardes-3d60aa05ec1a6f9ed535186be6c6c2850c71b24d.zip
merge: L2a (tags, grips, band, notice onto chrome) + M2's fix + FP (PDF leaks, spawn stop, PDF hits)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/dump.zig b/core/dump.zig
index 0cefa157..b1fad70e 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -381,9 +381,12 @@ pub fn check(gpa: std.mem.Allocator, bytes: []const u8, why: *[256]u8) !void {
/// The core the dump `bytes` is, and nothing more: no shell started, no
/// file watched, nothing asked of a host (`revive` does that). What another
/// build's dump could not give is said in `notes` when given. `opts` are
-/// this process's (its allocators, paths and name), not the dump's.
+/// this process's (its allocators, paths and name), not the dump's. Its
+/// chrome is the restored theme's: the colours are local, never dumped.
pub fn load(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, notes: ?*std.ArrayList(u8)) !*Pardes {
- return loadKnowing(gpa, opts, bytes, notes, null);
+ const p = try loadKnowing(gpa, opts, bytes, notes, null);
+ colors.finishThemeInitialization(p);
+ return p;
}
/// `load`, with which panes' files were on disk when it was dumped.
@@ -1010,6 +1013,10 @@ pub fn plainHere(p: *Pardes, id: usize, old: *Kind.Slot, ops: *const Kind.Ops) !
s.selection = try p.gpa.dupe(u8, old.selection);
// (and its place: the open's own `where` is of a block not yet the session's)
const kept = .{ old.next_tick, old.views, old.focused, old.state, old.where_text };
+ // The count of writes outside the copy stays the session's, as dumped:
+ // this open is the join's, no step the session took (Kind.reopen).
+ const outside = p.outside;
+ defer p.outside = outside;
if (!Kind.reopen(p, id, s, old.file)) return error.KindRefused;
// Its block the session's, byte for byte (its record), never through
// the kind's load, which may tidy it.