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
if (!Cell.Color.eql(cursor.ul, cell.style.ul)) {
switch (cell.style.bg) {
switch (cell.style.ul) {
.default => try tty.writeAll(ctlseqs.ul_reset),
.index => |idx| {
switch (self.sgr) {