diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 12:42:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 14:56:36 -0300 |
| commit | 34a80c9f9b81b64d095a1d5123ae74a52bef4749 (patch) | |
| tree | 618eb5f3d1bd04e659ba6389977d017aff4f4033 /src/layout.zig | |
| parent | 9b60771ffcd254772b716fafe488b09d9c2d3e0c (diff) | |
| download | pardes-34a80c9f9b81b64d095a1d5123ae74a52bef4749.tar.gz pardes-34a80c9f9b81b64d095a1d5123ae74a52bef4749.zip | |
idioms #17, the rest of the core says its failures: tagline, keys, panes, Effect and the header text in mouse report a failed allocation or shell where they returned with nothing said, the headers' own text (flatSurface makes none) and the prints whose buffer provably fits (layout, modal, panes, keys, colors) catch unreachable with why
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/layout.zig')
| -rw-r--r-- | src/layout.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout.zig b/src/layout.zig index a0d7cbd5..0b11fe1b 100644 --- a/src/layout.zig +++ b/src/layout.zig @@ -493,7 +493,7 @@ pub fn dropColumnUnannounced(p: *Pardes, c: usize) void { /// as /layout and /col name it. pub fn noteColumn(p: *Pardes, what: []const u8, serial: u32) void { var buf: [16]u8 = undefined; - pardes.ctlfs.events.notePath(p, what, std.fmt.bufPrint(&buf, "{d}", .{serial}) catch return); + pardes.ctlfs.events.notePath(p, what, std.fmt.bufPrint(&buf, "{d}", .{serial}) catch unreachable); // a u32 } /// Fold column `c` into the one on its right, its panes below theirs. @@ -1741,7 +1741,7 @@ pub fn newColumn(p: *Pardes, from_id: usize) void { const c = insertColumnUnannounced(p, col, false) orelse { var said: [96]u8 = undefined; return p.reportFailure(from_id, if (p.view().ncol >= MAX_COLS) - std.fmt.bufPrint(&said, "Newcol: no space for a column: {d} max", .{MAX_COLS}) catch "Newcol: no space for a column" + std.fmt.bufPrint(&said, "Newcol: no space for a column: {d} max", .{MAX_COLS}) catch unreachable else "Newcol: no space for a column: this one is too narrow to split"); }; |
