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/messages | |
parent | ded4767729cedb8457b343b584d40302d518eba2 (diff) |
Change things
Diffstat (limited to 'ui/messages')
-rw-r--r-- | ui/messages/tstring/string.go | 3 |
1 files changed, 1 insertions, 2 deletions
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) } } |