1
1
mirror of https://github.com/walles/moar.git synced 2024-11-28 23:37:02 +03:00

Render underline color changes

This commit is contained in:
Johan Walles 2024-08-12 20:44:40 +02:00
parent ae0ae42241
commit d9b3e16e00

View File

@ -180,6 +180,10 @@ func (current Style) RenderUpdateFrom(previous Style, terminalColorCount ColorCo
builder.WriteString(current.bg.ansiString(colorTypeBackground, terminalColorCount)) builder.WriteString(current.bg.ansiString(colorTypeBackground, terminalColorCount))
} }
if current.underlineColor != previous.underlineColor {
builder.WriteString(current.underlineColor.ansiString(colorTypeUnderline, terminalColorCount))
}
// Handle AttrDim / AttrBold changes // Handle AttrDim / AttrBold changes
previousBoldDim := previous.attrs & (AttrBold | AttrDim) previousBoldDim := previous.attrs & (AttrBold | AttrDim)
currentBoldDim := current.attrs & (AttrBold | AttrDim) currentBoldDim := current.attrs & (AttrBold | AttrDim)