aboutsummaryrefslogtreecommitdiff
path: root/ui/messages
diff options
context:
space:
mode:
Diffstat (limited to 'ui/messages')
-rw-r--r--ui/messages/tstring/string.go3
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)
}
}