feat: add a bullet to inline diagnostic messages

This commit is contained in:
CJ van den Berg 2025-01-03 20:06:45 +01:00
parent 86ca13b847
commit 023298cc47
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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 {