mirror of
https://github.com/felixangell/phi.git
synced 2024-10-05 20:27:17 +03:00
sprintf rather than str conversion
This commit is contained in:
parent
9f9e1102ff
commit
a215ceda95
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user