From c3c7cc9b3503417afe11a8067095534a751dfd04 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 26 Mar 2019 19:57:44 +0200 Subject: Change things --- ui/widget/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/widget/util.go') 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 } } -- cgit v1.2.3