summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/dump.zig b/core/dump.zig
index 31496674..6f143daa 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -499,7 +499,7 @@ fn loadImage(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, notes: ?*
/// build's dump could not give): a terminal, a new emulator for its shell.
fn ensureKind(p: *Pardes, pane: *pardes.panes.Pane) !void {
if (pane.terminal != null or pane.file != null or pane.addon != null or pane.pdf != null) return;
- if (pardes.tape.authorityOnly("open a terminal")) return error.OutOfMemory;
+ if (p.tape.authorityOnly("open a terminal")) return error.OutOfMemory;
pane.terminal = try pardes.Term.open(pardes.panes.emulatorGpa(p.gpa), @max(1, pane.cols), @max(1, pane.rows));
}
@@ -876,7 +876,7 @@ pub fn reviveSlot(p: *Pardes, id: usize, s: *Kind.Slot) void {
s.gen = p.kinds.kinds[k].gen;
// A replica has no code to read it for: the authority's outcome is taped.
// The authority's code may not be loaded yet: its open loads it.
- const bytes: ?[]u8 = if ((s.ops != null or !pardes.tape.replaying()) and s.path.len > 0) filesystem.read(p, s.path) catch null else null;
+ const bytes: ?[]u8 = if ((s.ops != null or !p.tape.replaying()) and s.path.len > 0) filesystem.read(p, s.path) catch null else null;
defer if (bytes) |b| p.gpa.free(b);
const kept = .{ s.next_tick, s.views, s.focused };
if (!Kind.reopen(p, id, s, bytes)) {