diff options
Diffstat (limited to 'src/output_pane.zig')
| -rw-r--r-- | src/output_pane.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output_pane.zig b/src/output_pane.zig index 1850fa92..288c3e43 100644 --- a/src/output_pane.zig +++ b/src/output_pane.zig @@ -572,6 +572,14 @@ pub fn openEffectCode(p: *Pardes, id: usize, argument: []const u8) !void { /// /// `content` is gpa-owned: adopted by the buffer, or freed here when there is /// nowhere to put it. +/// Put a report in this directory's `+Errors` buffer — acme's own name for +/// output that came from the PROGRAM rather than from a word somebody clicked. +/// Refills the one already open rather than stacking a twin, which is what a +/// second failed filter wants: the newest reason is the one being read. +pub fn openErrors(p: *Pardes, id: usize, content: []u8) !void { + return openRead(p, id, .errors, "", content); +} + fn openRead(p: *Pardes, id: usize, from: Origin, arg: []const u8, content: []u8) !void { errdefer p.gpa.free(content); const pane = p.panes[id] orelse return error.MissingPane; |
