summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 04:52:38 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit430d482c16101ce85b5c0f80f6bdd882c09a3272 (patch)
tree10dad6a09f8fd8e0784dc83058c10103c35fba25 /src/pardes.zig
parent4e82c95653e1e8e03fde91e3cea2de04b3fabbc8 (diff)
downloadpardes-430d482c16101ce85b5c0f80f6bdd882c09a3272.tar.gz
pardes-430d482c16101ce85b5c0f80f6bdd882c09a3272.zip
Refusals and records say more: get quotes its line, a bare answer lists the choices, a clean reload is logged
get's refusal now quotes the line as a builtin's (Save's) does; a bare answer while a question stands says what it takes (answer takes k j or -); and a clean buffer reloaded from disk logs changed <serial> reloaded, as the kept dirty case logs changed <serial>. (A failed Save already says why: Save <path>: <the error in words>.) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 289dcee0..5d709679 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -7977,6 +7977,8 @@ test "a pane closed while its question stands ends the question in the log" {
p.update(.{ .key = .{ .cp = ' ' } });
p.update(.{ .key = .{ .cp = 'd' } });
try std.testing.expectEqual(Pane.Prompt.del_side, p.panes[closing].?.prompt);
+ // A bare answer says what this question takes.
+ try std.testing.expectEqualStrings("answer takes k j or -", th.wr(p, ctlfs.Node.of(serial, .ctl), "answer\n").reply.ename);
try p.removePane(closing, null);
var want: [64]u8 = undefined;
try std.testing.expect(th.logHas(p, try std.fmt.bufPrint(&want, "answer {d} -\ndel {d}", .{ serial, serial })));