diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 05:06:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 05:18:09 -0300 |
| commit | 1e54e82f763284f086accef902ea1316687c8851 (patch) | |
| tree | 41c0f47fe5eb428cfb5298f55df4f591773ebf2d /src/ninep/ctl.zig | |
| parent | 51ddaaf3917ad7968df877d10580d1eadb926688 (diff) | |
| download | pardes-1e54e82f763284f086accef902ea1316687c8851.tar.gz pardes-1e54e82f763284f086accef902ea1316687c8851.zip | |
A body write to an image or a PDF says its body takes no writes, not that the pane has no text "(a terminal, ...)"
A terminal's body takes writes (its keys), so the old words named the
one kind that does. data, sel and dirty keep "this pane has no text",
which is true of all three.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 7d8a370d..1fcd7a6d 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -4065,3 +4065,11 @@ test "a Save whose directory is missing because one above refuses says permissio p.saveFailed(0, "/tmp/pardes-surely-missing-dir/f.txt", error.FileNotFound); try testing.expect(th.logHas(p, "no such directory")); } + +test "a body write to an image pane says its body takes none, not that terminals have no text" { + const p = try withFile(testing.allocator, "x\n"); + defer p.deinit(); + const doc = try p.newDocPane(p.freeSlot().?); + doc.image = .{ .path = try p.gpa.dupe(u8, "/tmp/pardes-pic.ppm") }; + try testing.expectEqualStrings(pane_files.e_no_body, wr(p, Node.of(doc.serial, .body), "x").reply.ename); +} |
