From 430d482c16101ce85b5c0f80f6bdd882c09a3272 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 04:52:38 -0300 Subject: 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 reloaded, as the kept dirty case logs changed . (A failed Save already says why: Save : .) Co-Authored-By: Claude Opus 5.5 --- src/pardes.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pardes.zig') 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 }))); -- cgit v1.3