use tobgcode

This commit is contained in:
Daylin Morgan 2024-09-25 14:39:09 -05:00
parent 0bce099520
commit d4fad5a3c2
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -79,7 +79,7 @@ proc toAnsiCode*(s: string): string =
elif normalizedBgStyle.isHex():
codes.add normalizedBgStyle.hexToRgb().toBgCode()
elif normalizedBgStyle in ColorDigitStrings:
codes.add parseInt(normalizedBgStyle).toCode()
codes.add parseInt(normalizedBgStyle).toBgCode()
else:
when defined(debugBB): echo "unknown bg style: " & normalizedBgStyle