From 023298cc47e049857fad9e6c8cdf1cf82b4c74f9 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 3 Jan 2025 20:06:45 +0100 Subject: [PATCH] feat: add a bullet to inline diagnostic messages --- src/tui/editor.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index dd1adf0..32c0bae 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -1065,7 +1065,7 @@ pub const Editor = struct { self.plane.set_style(style); var iter = std.mem.splitScalar(u8, message_, '\n'); if (iter.next()) |message| - _ = self.plane.print_aligned_right(@intCast(y), "{s}", .{message[0..@min(max_space, message.len)]}) catch {}; + _ = self.plane.print_aligned_right(@intCast(y), " • {s}", .{message[0..@min(max_space - 3, message.len)]}) catch {}; } inline fn render_diagnostic_cell(self: *Self, style: Widget.Theme.Style) void {