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/File.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/File.zig') diff --git a/src/File.zig b/src/File.zig index 4011301a..17399d8b 100644 --- a/src/File.zig +++ b/src/File.zig @@ -994,6 +994,9 @@ pub fn changed(p: *Pardes, id: u8, bytes: []const u8) void { return; }; f.disk_newer = null; + // Logged as the dirty case is, with what became of it. + var rec: [32]u8 = undefined; + pardes.ctlfs.events.notePath(p, "changed", std.fmt.bufPrint(&rec, "{d} reloaded", .{pane.serial}) catch ""); const new = p.gpa.dupe(u8, bytes) catch return; pushUndo(p, pane); setContent(p, f, new); -- cgit v1.3