diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-03-26 19:57:44 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-03-26 19:57:44 +0200 |
commit | c3c7cc9b3503417afe11a8067095534a751dfd04 (patch) | |
tree | 90445b9c7e2db4d1895a4b83c134d97753b24177 /ui/widget | |
parent | ded4767729cedb8457b343b584d40302d518eba2 (diff) |
Change things
Diffstat (limited to 'ui/widget')
-rw-r--r-- | ui/widget/util.go | 2 |
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 } } |