diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 04:52:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 430d482c16101ce85b5c0f80f6bdd882c09a3272 (patch) | |
| tree | 10dad6a09f8fd8e0784dc83058c10103c35fba25 /src/File.zig | |
| parent | 4e82c95653e1e8e03fde91e3cea2de04b3fabbc8 (diff) | |
| download | pardes-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/File.zig')
| -rw-r--r-- | src/File.zig | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
