diff options
Diffstat (limited to 'src/terminal.zig')
| -rw-r--r-- | src/terminal.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal.zig b/src/terminal.zig index c041ae22..22371a78 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -1079,7 +1079,7 @@ test "a restored command pane comes back finished, its command not run again" { defer p.deinit(); while (p.nextEffect()) |_| {} const cmd = p.freeSlot().?; - _ = try p.newCommand(cmd, "/tmp", "make test"); + _ = try panes.newCommand(p, cmd, "/tmp", "make test"); feedOutput(p, p.panes[cmd].?, "ok\r\n"); p.update(.{ .exited = .{ .pane = @intCast(cmd), .status = 2 } }); try pardes.dump.dumpState(p); @@ -1148,7 +1148,7 @@ pub fn feedOutput(p: *Pardes, pane: *Pane, bytes: []const u8) void { // A replica's emulator is what the authority's deltas make it; what // pardes keeps over it moves as the authority's ingest told it. if (pardes.tape.screenReplica()) { - if (has_positions and ingestWithPositions(pane, bytes)) if (p.paneIdOf(pane)) |id| p.setMessage(id, positions_lost); + if (has_positions and ingestWithPositions(pane, bytes)) if (panes.paneIdOf(p, pane)) |id| p.setMessage(id, positions_lost); return; } // Sticky bottom, as every other terminal does it: output drags the @@ -1158,7 +1158,7 @@ pub fn feedOutput(p: *Pardes, pane: *Pane, bytes: []const u8) void { syncPixels(p, pane); if (!has_positions) { ingest(pane, bytes); - } else if (ingestWithPositions(pane, bytes)) if (p.paneIdOf(pane)) |id| p.setMessage(id, positions_lost); + } else if (ingestWithPositions(pane, bytes)) if (panes.paneIdOf(p, pane)) |id| p.setMessage(id, positions_lost); p.shell_rows.markStale(pane); if (pane.body.mode == .tty and at_bottom) followOutput(pane); } |
