diff options
Diffstat (limited to 'core/ninep/pty.zig')
| -rw-r--r-- | core/ninep/pty.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ninep/pty.zig b/core/ninep/pty.zig index 923dab88..43973491 100644 --- a/core/ninep/pty.zig +++ b/core/ninep/pty.zig @@ -422,7 +422,7 @@ pub fn shellExited(p: *Pardes, pane: *Pane, status: ?u8) void { const code = status orelse return; if (waitingRun(p, pane)) |slot| if (slot.phase == .sent) { pane.fs.run = null; - if (pane.terminal) |state| pardes.Term.endOutputHere(state); + if (pane.terminal) |state| pardes.Term.endOutputHere(&p.outside, state); finish(p, slot, pane, code); }; var buf: [4]u8 = undefined; @@ -1015,10 +1015,10 @@ test "a run's answer says cut when its output's start is gone, and reads a bound // A resize between its start and end reflows the pins with the text. h = sh.send(p, node); sh.put(p, c ++ "one\r\ntwo\r\n"); - pane.resizeGrid(p.live, 50, 20); + pane.resizeGrid(p, 50, 20); sh.put(p, d ++ prompt); try testing.expectEqualStrings("exit 0\none\ntwo\n", sh.answered(p, node, h, into)); - pane.resizeGrid(p.live, pane.cols, pane.rows); + pane.resizeGrid(p, pane.cols, pane.rows); // A full-screen program leaves nothing on the primary screen, and a D // with no status is not a success. |
