summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/panes.zig b/core/panes.zig
index 15e1db50..658de219 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -1194,9 +1194,10 @@ pub const emulator_gpa = std.heap.c_allocator;
/// What a terminal's emulator is made with, by `createTerminal` or a pane's
/// load (dump.loadPane, a closed terminal brought back): `gpa`, but on a
-/// replica `emulator_gpa`.
+/// replica `emulator_gpa`, and in a replica's core being made (its dump's
+/// load, a pair's client's own boot) `dump.terminal_gpa`.
pub fn emulatorGpa(gpa: std.mem.Allocator) std.mem.Allocator {
- return if (tape.replaying()) emulator_gpa else gpa;
+ return if (tape.replaying()) emulator_gpa else pardes.dump.terminal_gpa orelse gpa;
}
// ---- the session's pane slots: making, finding, closing and freeing panes, and their prompts ----