diff --git a/util/wordwrap/wordwrap.go b/util/wordwrap/wordwrap.go index b2c63b8..4aa0c94 100644 --- a/util/wordwrap/wordwrap.go +++ b/util/wordwrap/wordwrap.go @@ -23,6 +23,7 @@ func WrapString(s string, lim uint) string { var wordBuf, spaceBuf bytes.Buffer var wordWidth, spaceWidth int + lim = lim + uint(len(s)) - uint(strutil.StringWidth(s)) for _, char := range s { if char == '\n' { if wordBuf.Len() == 0 {