diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 00:45:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | e563be42a5b3e9243e2c01d34cf8e94d2047b753 (patch) | |
| tree | d71c8265c353f41cdb49b20f3a7e4d6e8d9baab2 /src/fs.zig | |
| parent | 0fe78621cc0db8b835ebcb7c51bbd2d20d6dbcc2 (diff) | |
| download | pardes-e563be42a5b3e9243e2c01d34cf8e94d2047b753.tar.gz pardes-e563be42a5b3e9243e2c01d34cf8e94d2047b753.zip | |
A terminal's body reads as logical lines, the last one ending in a newline
A terminal's body came back as the screen's rows, a long line cut where the
terminal wrapped it and the last line with no newline. The body (and a
terminal's Save, and the length its ctl reports) now joins wrapped rows by
ghostty's wrap flags, as pty/run's output does, and ends the last line with
a newline.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/fs.zig')
| -rw-r--r-- | src/fs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -491,7 +491,7 @@ test "bounded reads release terminal snapshots after success and size refusal" { defer gpa.free(empty); try std.testing.expectEqual(@as(usize, 0), empty.len); p.update(.{ .output = .{ .pane = 0, .bytes = "limited terminal output" } }); - const expected = "limited terminal output"; + const expected = "limited terminal output\n"; // a line ends with its newline const bytes = try readLimit(p, path, expected.len); defer gpa.free(bytes); try std.testing.expectEqualStrings(expected, bytes); |
