fix: set undercurl color after the rest of the diagnostic style

This commit is contained in:
CJ van den Berg 2024-07-09 23:43:55 +02:00
parent 0caeb2c523
commit 67407aeb41

View file

@ -881,8 +881,8 @@ pub const Editor = struct {
inline fn render_diagnostic_cell(self: *Self, style: Widget.Theme.Style) void { inline fn render_diagnostic_cell(self: *Self, style: Widget.Theme.Style) void {
var cell = self.plane.cell_init(); var cell = self.plane.cell_init();
_ = self.plane.at_cursor_cell(&cell) catch return; _ = self.plane.at_cursor_cell(&cell) catch return;
if (style.fg) |ul_col| cell.set_under_color(ul_col);
cell.set_style(.{ .fs = .undercurl }); cell.set_style(.{ .fs = .undercurl });
if (style.fg) |ul_col| cell.set_under_color(ul_col);
_ = self.plane.putc(&cell) catch {}; _ = self.plane.putc(&cell) catch {};
} }