Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 28, 2022
1 parent 72a1ec6 commit d84c943
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions widget/richtext.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ func lineBounds(seg *TextSegment, wrap fyne.TextWrap, firstWidth, maxWidth float
} else {
newHigh := binarySearch(checker, low, high)
if newHigh <= low {
bounds = append(bounds, rowBoundary{[]RichTextSegment{seg}, reuse, low, low+1})
bounds = append(bounds, rowBoundary{[]RichTextSegment{seg}, reuse, low, low + 1})
reuse++
low++
} else {
Expand All @@ -820,10 +820,10 @@ func lineBounds(seg *TextSegment, wrap fyne.TextWrap, firstWidth, maxWidth float
fallback := binarySearch(checker, low, last) - low

if fallback < 1 { // even a character won't fit
sub = text[low:low+1]
bounds = append(bounds, rowBoundary{[]RichTextSegment{seg}, reuse, low, low+1})
sub = text[low : low+1]
bounds = append(bounds, rowBoundary{[]RichTextSegment{seg}, reuse, low, low + 1})
low++
high = low+1
high = low + 1
reuse++

if high > l.end {
Expand Down

0 comments on commit d84c943

Please sign in to comment.