diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-09 03:29:30 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-09 03:30:37 -0300 |
| commit | 446292e15d56c9c248dae5d6fde1be3a83ade82e (patch) | |
| tree | 859d8be8a92a18011034e614324fa1af5c99139e /src/Query.zig | |
| parent | aabbccba49772cf73c7e35ae470245e9fda9d6ff (diff) | |
| download | pardes-446292e15d56c9c248dae5d6fde1be3a83ade82e.tar.gz pardes-446292e15d56c9c248dae5d6fde1be3a83ade82e.zip | |
idioms: the 9P tree's swallows decided: a directory read stages every entry or answers ENOMEM (stageDirent and sources.stage return error{OutOfMemory}, readdir's entries made by stageDir, an /os listing whose buffer fills ends there), a pane's tag read through tagOf fails by name (a read or an event write answers ENOMEM, a stat's length and ctl's line say 0), a pane that cannot close (removePane's nine swallowing callers) and a /pager text that cannot go in (fillClosedPagers) are said on their pane, and Queue.push says once why a lost record is not said
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Query.zig')
| -rw-r--r-- | src/Query.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Query.zig b/src/Query.zig index c05992f6..b1424968 100644 --- a/src/Query.zig +++ b/src/Query.zig @@ -1671,7 +1671,7 @@ fn makePreview(p: *Pardes, qid: usize, rows: u16, giver: usize) ?usize { }; layout.compute(p); if (!layout.attachFrom(p, qid, free, rows, giver)) { - p.removePane(free, qid) catch {}; + p.removePane(free, qid) catch |err| p.reportError(qid, "query", err); return null; } rp.query.?.preview = np.serial; @@ -1905,7 +1905,7 @@ pub fn cancel(p: *Pardes, id: usize) void { // go to the text whose rows they were. if (previewOf(p, id)) |pid| { p.panes[pid].?.attached_to = null; - p.removePane(pid, owner_id) catch {}; + p.removePane(pid, owner_id) catch |err| p.reportError(id, "query", err); q.preview = 0; } const f = &rp.file.?; @@ -1936,10 +1936,10 @@ pub fn cancel(p: *Pardes, id: usize) void { // Attached, its rows go back to its owner; else to its own column's. const attached = layout.ownerOf(p, id) != null; if (owner_id) |oid| { - p.removePane(id, if (attached) oid else null) catch {}; + p.removePane(id, if (attached) oid else null) catch |err| p.reportError(id, "query", err); p.view().active = oid; if (layout.findPane(p, oid)) |at| p.setActiveColumn(at.col); - } else p.removePane(id, null) catch {}; + } else p.removePane(id, null) catch |err| p.reportError(id, "query", err); } /// A parse of pane `serial`'s text came back (Stream.receiveParse): its |
