aboutsummaryrefslogtreecommitdiffstats
path: root/util/text/text.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/text/text.go')
-rw-r--r--util/text/text.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/text/text.go b/util/text/text.go
index 443728aa..b41b892b 100644
--- a/util/text/text.go
+++ b/util/text/text.go
@@ -84,7 +84,7 @@ func WrapLeftPadded(text string, lineWidth int, leftPad int) (string, int) {
lineBuffer.Reset()
lineBuffer.WriteString(word)
firstWord = false
- spaceLeft = lineWidth - wordLength
+ spaceLeft = lineWidth - leftPad - wordLength
nbLine++
}
}