chore: deps and vendor

This commit is contained in:
2024-12-27 13:47:45 +01:00
parent 671e1ca276
commit 18df498295
245 changed files with 9652 additions and 3484 deletions

View File

@ -378,14 +378,17 @@ func Wrap(s string, limit int, breakpoints string) string {
i++
}
if word.Len() != 0 {
// Preserve ANSI wrapped spaces at the end of string
if wordLen == 0 {
if curWidth+space.Len() > limit {
buf.WriteByte('\n')
curWidth = 0
} else {
// preserve whitespaces
buf.Write(space.Bytes())
}
addSpace()
space.Reset()
}
buf.Write(word.Bytes())
addWord()
return buf.String()
}