fix(underline): use correct style value in switch

This commit is contained in:
Tim Culverhouse 2024-07-09 13:05:37 -05:00
parent dff7681c30
commit 40e51ad054

View file

@ -496,7 +496,7 @@ pub fn render(self: *Vaxis, tty: AnyWriter) !void {
} }
// underline color // underline color
if (!Cell.Color.eql(cursor.ul, cell.style.ul)) { if (!Cell.Color.eql(cursor.ul, cell.style.ul)) {
switch (cell.style.bg) { switch (cell.style.ul) {
.default => try tty.writeAll(ctlseqs.ul_reset), .default => try tty.writeAll(ctlseqs.ul_reset),
.index => |idx| { .index => |idx| {
switch (self.sgr) { switch (self.sgr) {