diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 05:22:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | e9eae368dbbe855ad2f409913ff0d44d5ac32bd8 (patch) | |
| tree | a72ba7ecd7051d72f7685e948205d7d60aa44b21 /src/ninep/pty.zig | |
| parent | 5002c612298fe645791218059a69d2bc80a42d2d (diff) | |
| download | pardes-e9eae368dbbe855ad2f409913ff0d44d5ac32bd8.tar.gz pardes-e9eae368dbbe855ad2f409913ff0d44d5ac32bd8.zip | |
Tty takes a directory as long as a path may be
A terminal's directory rode inline in the spawn effect, capped at 256
bytes, so Tty in a directory of about 377 bytes said path too long. A
directory past the inline buffer now goes out of line (Pardes.spawn_dirs,
given to the host when the spawn is performed), up to the host's path
limit (4095); past that, Tty says its directory is longer than a path
may be. The effect queue stays its size.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/pty.zig')
| -rw-r--r-- | src/ninep/pty.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninep/pty.zig b/src/ninep/pty.zig index 6b2abd0a..046a456a 100644 --- a/src/ninep/pty.zig +++ b/src/ninep/pty.zig @@ -87,7 +87,7 @@ fn verb(p: *Pardes, id: usize, line: []const u8, apply: bool) bool { if (words.next() != null) return false; if (pane.cwdSlice().len > pardes.effect_path_cap) return false; if (!apply) return true; - p.emit(.{ .spawn = .{ .pane = @intCast(id), .serial = pane.serial, .cwd = .from(pane.cwdSlice()) } }); + p.emitSpawn(id, pane.serial, pane.cwdSlice()); }, } return true; |
