diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
| commit | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch) | |
| tree | f2e288668decded9276ebc45907f16d651b06f9e /core/Plumb.zig | |
| parent | 2ab05b536bc3b063666b5aaab497157adc2a9120 (diff) | |
| parent | bf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff) | |
| download | pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip | |
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Plumb.zig')
| -rw-r--r-- | core/Plumb.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Plumb.zig b/core/Plumb.zig index fdb7ad8c..aeebfc64 100644 --- a/core/Plumb.zig +++ b/core/Plumb.zig @@ -969,7 +969,7 @@ fn run(p: *Pardes, id: usize, wdir: []const u8, argv: []const []const u8) ?[]con start.data[start.len + w.len] = 0; start.len += @intCast(w.len + 1); }; - p.emit(.{ .start = .{ .pane = @intCast(id), .line = start } }); + p.emit(.{ .start = .{ .pane = .at(id), .line = start } }); return null; } @@ -1001,7 +1001,7 @@ fn deliver(s: *Send, id: usize, port: Port, m: *const Msg) Sent { if (relative) m.wdir else "", if (relative) "/" else "", m.data, if (addr.len > 0) ":" else "", addr, }) catch { - p.reportError(id, "plumb", error.OutOfMemory); + p.reportError(.at(id), "plumb", error.OutOfMemory); return .done; }; const was = p.look_text; @@ -1025,10 +1025,10 @@ fn show(s: *Send, id: usize, m: *const Msg, diff: bool) void { const named = std.mem.eql(u8, filename, if (p.panes[id]) |pn| (if (pn.file) |f| f.path else "") else ""); const shown: usize = if (named) id else shown: { const name = if (filename.len > 0) filename else "+Plumbed"; - const free = p.freeSlot() orelse return p.reportError(id, "plumb", error.NoPaneSlots); + const free = p.freeSlot() orelse return p.reportError(.at(id), "plumb", error.NoPaneSlots); pardes.panes.newScratchFor(p, id, .scratch); const made = p.panes[free] orelse return; - @import("ninep/pane.zig").nameBuffer(p, free, name, false) catch |err| return p.reportError(id, "plumb", err); + @import("ninep/pane.zig").nameBuffer(p, free, name, false) catch |err| return p.reportError(.at(id), "plumb", err); const f = &made.file.?; _ = pardes.panes.File.replace(p, f, 0, f.content.len, m.data); f.saved_revision = f.revision; @@ -1075,8 +1075,8 @@ fn openInKind(s: *Send, id: usize, k: u8, m: *const Msg) void { p.view().active = i; return; }; - const free = p.freeSlot() orelse return p.reportError(id, "plumb", error.NoPaneSlots); - const made = Kind.openFile(p, free, k, path) catch |err| return p.reportError(id, path, err); + const free = p.freeSlot() orelse return p.reportError(.at(id), "plumb", error.NoPaneSlots); + const made = Kind.openFile(p, free, k, path) catch |err| return p.reportError(.at(id), path, err); if (made.addon.?.refused.len > 0) { made.vweight = 0; p.unplaced.set(free); |
