From 40e51ad0542ea964190db411292660c274e2a984 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 9 Jul 2024 13:05:37 -0500 Subject: [PATCH] fix(underline): use correct style value in switch --- src/Vaxis.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vaxis.zig b/src/Vaxis.zig index 8376cca..e897ec7 100644 --- a/src/Vaxis.zig +++ b/src/Vaxis.zig @@ -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) {