aboutsummaryrefslogtreecommitdiff
path: root/ui/widget
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-03-26 19:57:44 +0200
committerTulir Asokan <tulir@maunium.net>2019-03-26 19:57:44 +0200
commitc3c7cc9b3503417afe11a8067095534a751dfd04 (patch)
tree90445b9c7e2db4d1895a4b83c134d97753b24177 /ui/widget
parentded4767729cedb8457b343b584d40302d518eba2 (diff)
Change things
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
}
}