feat: add a bullet to inline diagnostic messages
This commit is contained in:
parent
86ca13b847
commit
023298cc47
1 changed files with 1 additions and 1 deletions
|
@ -1065,7 +1065,7 @@ pub const Editor = struct {
|
||||||
self.plane.set_style(style);
|
self.plane.set_style(style);
|
||||||
var iter = std.mem.splitScalar(u8, message_, '\n');
|
var iter = std.mem.splitScalar(u8, message_, '\n');
|
||||||
if (iter.next()) |message|
|
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 {
|
inline fn render_diagnostic_cell(self: *Self, style: Widget.Theme.Style) void {
|
||||||
|
|
Loading…
Add table
Reference in a new issue