summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 13:16:18 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commita821fe82d8de3d407ebe104358b97719bd983727 (patch)
tree46301f10f599983fc1be9b9ac38df8d2e6d0bf71 /src/panes.zig
parentd78fa4f9d90437dac60d9150e3a6eca868895856 (diff)
downloadpardes-a821fe82d8de3d407ebe104358b97719bd983727.tar.gz
pardes-a821fe82d8de3d407ebe104358b97719bd983727.zip
idioms #19, unreachable only where the type bounds it: the prints that carry a path, a name, a miss or a reason (Core's shell and Dump words, colors' theme file, look's misses and refusals) cut through Kind.Buf at their old size, the header texts flatSurface could still fail on and colors' putName handle the failure again, and every kept site (integers, a same-statement cut into a [K + room] buffer, the hashing and discarding writers) says its bound on its line
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig
index b9504b1c..a90613d0 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -1052,7 +1052,7 @@ pub fn startPrompt(p: *Pardes, pane: *Pane, t: *Text, request: union(enum) {
if (request == .save and p.fs.serving) {
if (pane.prompt == .save) return;
var rec: [32]u8 = undefined;
- ctlfs.events.notePath(p, "ask", std.fmt.bufPrint(&rec, "{d} save path", .{pane.serial}) catch unreachable); // a u32
+ ctlfs.events.notePath(p, "ask", std.fmt.bufPrint(&rec, "{d} save path", .{pane.serial}) catch unreachable); // a u32 and 10 bytes fit 32
}
const marker = switch (request) {
.search => |marker| marker,