We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f20c2c commit 7d29b6eCopy full SHA for 7d29b6e
text.go
@@ -30,8 +30,7 @@ func lines(text string, width int) iter.Seq[string] {
30
if line == "" {
31
line += word + cluster
32
} else {
33
- l := removeSpaceAtLineTail(line + word + cluster)
34
- if textWidth(l) > width {
+ if l := removeSpaceAtLineTail(line + word + cluster); textWidth(l) > width {
35
if !yield(removeSpaceAtLineTail(line)) {
36
return
37
}
0 commit comments