Skip to content

Commit 7d29b6e

Browse files
committed
debugui: refactoring
1 parent 7f20c2c commit 7d29b6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

text.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ func lines(text string, width int) iter.Seq[string] {
3030
if line == "" {
3131
line += word + cluster
3232
} else {
33-
l := removeSpaceAtLineTail(line + word + cluster)
34-
if textWidth(l) > width {
33+
if l := removeSpaceAtLineTail(line + word + cluster); textWidth(l) > width {
3534
if !yield(removeSpaceAtLineTail(line)) {
3635
return
3736
}

0 commit comments

Comments
 (0)