1
0

fix wrapping on release state

This commit is contained in:
Arpad Ryszka 2025-11-01 23:07:37 +01:00
parent cc133e8969
commit 259163c737

View File

@ -153,6 +153,11 @@ func wrapIndentRelease(first, rest []rune, firstWidth, restWidth int) func(wrapI
state.currentLineLength+len(state.currentWord)+1+len(indent) > width { state.currentLineLength+len(state.currentWord)+1+len(indent) > width {
ret = append(ret, '\n') ret = append(ret, '\n')
state.currentLineLength = 0 state.currentLineLength = 0
state.multipleLines = true
}
if state.multipleLines {
indent = rest
} }
if state.currentLineLength == 0 { if state.currentLineLength == 0 {