diff options
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index 40a5083c..f7822caf 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -738,6 +738,17 @@ pub const Config = struct { } }; +/// Read back what the message rows said. A message row is cleared by the next +/// keystroke, so anything reported while you were looking at another pane was +/// gone before you could read it — a failed save, a watcher's reload, a +/// builtin's complaint. +pub const Messages = struct { + pub const output: OutputTraits = .{ .name = config.messages_buffer }; + pub fn run(c: Ctx) void { + output_pane.openMessages(c.p, c.id) catch |err| c.p.reportError(c.id, "messages", err); + } +}; + /// This build's version and what changed to reach it, printed into an output /// buffer the same way Config prints the live settings. pub const Changelog = struct { |
