fix(underline): use correct style value in switch
This commit is contained in:
parent
dff7681c30
commit
40e51ad054
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue