sprintf rather than str conversion

This commit is contained in:
Felix Angell 2021-01-10 12:50:41 +00:00
parent 9f9e1102ff
commit a215ceda95

View File

@ -1478,7 +1478,7 @@ func (b *Buffer) renderAt(ctx *strife.Renderer, rx int, ry int) {
gutterPadPx := 10
// how many chars we need
numLinesCharWidth := len(string(numLines)) + 2
numLinesCharWidth := len(fmt.Sprintf("%d", numLines)) + 2
gutterWidth := lastCharW*numLinesCharWidth + (gutterPadPx * 2)