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/hunks.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/hunks.zig')
| -rw-r--r-- | core/hunks.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/hunks.zig b/core/hunks.zig index a7d8e6cb..837d2a52 100644 --- a/core/hunks.zig +++ b/core/hunks.zig @@ -625,7 +625,7 @@ pub fn word(c: pardes.builtins.Ctx) void { if (diffSource(p, f)) |source| return showDiffText(p, c.id, source); _ = openDiff(p, c.id, f.path, f.content) catch |err| switch (err) { error.NoHunks => p.reportFailure(c.id, "Diff: no hunk in it"), - else => p.reportError(c.id, "hunks", err), + else => p.reportError(.at(c.id), "hunks", err), }; return; } @@ -647,14 +647,14 @@ pub fn word(c: pardes.builtins.Ctx) void { const path = if (arg[0] == '/') arg else std.fmt.bufPrint(&buf, "{s}/{s}", .{ std.mem.trimEnd(u8, Pardes.paneDir(c.pane), "/"), arg }) catch arg; const bytes = pardes.filesystem.read(p, path) catch |err| { if (p.plumb_declined != null) return declined(p, c.id, ""); - return p.reportError(c.id, path, err); + return p.reportError(.at(c.id), path, err); }; defer p.gpa.free(bytes); p.view().active = openDiff(p, c.id, path, bytes) catch |err| switch (err) { error.NoHunks => return declined(p, c.id, "Diff: no hunk in it"), else => { if (p.plumb_declined != null) return declined(p, c.id, ""); - return p.reportError(c.id, "hunks", err); + return p.reportError(.at(c.id), "hunks", err); }, }; } @@ -685,7 +685,7 @@ pub fn paged(p: *Pardes, id: usize) void { const keyboard = p.view().active; if (openDiff(p, id, f.path, f.content)) |hid| { // ponytail: the text is gone with it; Diff on the +Diff says no such file. - p.removePane(id, hid) catch |err| p.reportError(id, "pager", err); + p.removePane(id, hid) catch |err| p.reportError(.at(id), "pager", err); } else |_| {} if (p.panes[keyboard] != null) p.view().active = keyboard; } |
