summaryrefslogtreecommitdiff
path: root/core/Output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 20:31:32 -0300
committerGabriel Schneider <[email protected]>2026-11-19 20:31:32 -0300
commit0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch)
treef2e288668decded9276ebc45907f16d651b06f9e /core/Output.zig
parent2ab05b536bc3b063666b5aaab497157adc2a9120 (diff)
parentbf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff)
downloadpardes-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/Output.zig')
-rw-r--r--core/Output.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Output.zig b/core/Output.zig
index 750baf8f..3ac9f521 100644
--- a/core/Output.zig
+++ b/core/Output.zig
@@ -452,7 +452,7 @@ pub fn fillRows(p: *Pardes, id: usize, dir: []const u8, from: Origin, name: ?[]c
}
File.setRows(p, rf, result_rows) catch |err| {
locations.freeRows(p.gpa, result_rows);
- p.reportError(id, "rows", err);
+ p.reportError(.at(id), "rows", err);
};
p.view().active = id;
if (traits(from).steps) {
@@ -472,7 +472,7 @@ pub fn fillRows(p: *Pardes, id: usize, dir: []const u8, from: Origin, name: ?[]c
}
File.setRows(p, &np.file.?, result_rows) catch |err| {
locations.freeRows(p.gpa, result_rows);
- p.reportError(id, "rows", err);
+ p.reportError(.at(id), "rows", err);
};
layout.placeNew(p, id, id, free, .doc);
p.view().active = id;
@@ -603,7 +603,7 @@ pub fn openUnsaved(p: *Pardes, id: usize, content: []u8) void {
// goes in the session's, where a look from it can still resolve.
const dir = if (pardes.filesystem.localPath(own)) |local| (if (exec.kindOf(p.tape, local) == .directory) own else p.sessionDir()) else own;
const free = p.freeSlot() orelse return p.gpa.free(content);
- _ = open(p, free, dir, .unsaved, "", content) catch |err| return p.reportError(id, "+Unsaved", err);
+ _ = open(p, free, dir, .unsaved, "", content) catch |err| return p.reportError(.at(id), "+Unsaved", err);
layout.placeNew(p, id, id, free, .doc);
p.view().active = id;
}