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/messages/tstring/string.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/messages') diff --git a/ui/messages/tstring/string.go b/ui/messages/tstring/string.go index b14dc8e..bd6798d 100644 --- a/ui/messages/tstring/string.go +++ b/ui/messages/tstring/string.go @@ -183,9 +183,8 @@ func (str TString) AdjustStyleFull(fn func(tcell.Style) tcell.Style) { } func (str TString) Draw(screen mauview.Screen, x, y int) { - offsetX := 0 for _, cell := range str { - offsetX += cell.Draw(screen, x+offsetX, y) + x += cell.Draw(screen, x, y) } } -- cgit v1.2.3