aboutsummaryrefslogtreecommitdiff
path: root/ui/widget
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widget')
-rw-r--r--ui/widget/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widget/util.go b/ui/widget/util.go
index 6a2173d..ae8c6b3 100644
--- a/ui/widget/util.go
+++ b/ui/widget/util.go
@@ -57,7 +57,7 @@ func WriteLine(screen mauview.Screen, align int, line string, x, y, maxWidth int
screen.SetContent(x+offsetX+localOffset, y, ch, nil, style)
}
offsetX += chWidth
- if offsetX > maxWidth {
+ if offsetX >= maxWidth {
break
}
}