mirror of
https://github.com/walles/moar.git
synced 2024-11-25 09:12:58 +03:00
Render underline color changes
This commit is contained in:
parent
ae0ae42241
commit
d9b3e16e00
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user