summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 05:48:20 -0300
committerGabriel Schneider <[email protected]>2026-11-10 05:52:38 -0300
commit3eb166e287ec5afbd54b03a86711610e1b5269b6 (patch)
tree3d0577ada14499c3dcad84926ab52b6c6f54c6f1 /src/ninep
parent8903d352237919455996831047017ae57f2a83ef (diff)
downloadpardes-3eb166e287ec5afbd54b03a86711610e1b5269b6.tar.gz
pardes-3eb166e287ec5afbd54b03a86711610e1b5269b6.zip
panes: exec.noteRun and exec.commandDone become Pane methods (pane.noteRun, pane.commandDone) at the end of the Pane struct, beside the command_* fields they keep, since they act on one command pane; commandDone takes the pane its two callers in Core already hold, with its id for the close and the report, in place of looking it up again
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/pty.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninep/pty.zig b/src/ninep/pty.zig
index 8514c669..7333fac7 100644
--- a/src/ninep/pty.zig
+++ b/src/ninep/pty.zig
@@ -418,7 +418,7 @@ pub fn shellExited(p: *Pardes, pane: *Pane, status: ?u8) void {
};
var buf: [4]u8 = undefined;
// unreachable: a u8 exit code is at most 3 digits
- pardes.exec.noteRun(p, pane, "exit", std.fmt.bufPrint(&buf, "{d}", .{code}) catch unreachable);
+ pane.noteRun(p, "exit", std.fmt.bufPrint(&buf, "{d}", .{code}) catch unreachable);
}
/// The pane closed or its shell was replaced: the command's end will never