summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dump.zig b/src/dump.zig
index cb639568..152495e2 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -129,6 +129,10 @@ pub fn defaultDirectory(buf: []u8) ?[]const u8 {
return null;
}
+/// What a load makes a terminal's emulator with, when not the loader's
+/// own: a screen-state replica's are the C heap's (src/replica.zig).
+pub var terminal_gpa: ?std.mem.Allocator = null;
+
// ---- a whole session to and from a dump (acme keeps this in rows.c) ----
//
// A dump (src/walk.zig) is everything the session is but what is the
@@ -231,7 +235,7 @@ fn loadKnowing(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, notes:
p.fs.deinit(gpa);
gpa.destroy(p);
}
- l.allocs = .{ .image = p.image_gpa, .pdf = p.pdf_gpa };
+ l.allocs = .{ .image = p.image_gpa, .pdf = p.pdf_gpa, .terminal = terminal_gpa };
try l.into(Pardes, p);
const read = l.shared.items.len;
const mounts = try l.get([]const filesystem.Mount);