aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/html/text.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/messages/html/text.go')
-rw-r--r--ui/messages/html/text.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/messages/html/text.go b/ui/messages/html/text.go
index b168994..ea8f737 100644
--- a/ui/messages/html/text.go
+++ b/ui/messages/html/text.go
@@ -70,6 +70,10 @@ func (te *TextEntity) Draw(screen mauview.Screen) {
func (te *TextEntity) CalculateBuffer(width, startX int, bare bool) int {
te.BaseEntity.CalculateBuffer(width, startX, bare)
+ if len(te.Text) == 0 {
+ return te.startX
+ }
+ te.height = 0
te.prevWidth = width
if te.buffer == nil {
te.buffer = []string{}