aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/html/break.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/messages/html/break.go')
-rw-r--r--ui/messages/html/break.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/messages/html/break.go b/ui/messages/html/break.go
index ea67ead..fca1d0e 100644
--- a/ui/messages/html/break.go
+++ b/ui/messages/html/break.go
@@ -16,6 +16,10 @@
package html
+import (
+ "maunium.net/go/mauview"
+)
+
type BreakEntity struct {
*BaseEntity
}
@@ -27,6 +31,12 @@ func NewBreakEntity() *BreakEntity {
}}
}
+// AdjustStyle changes the style of this text entity.
+func (be *BreakEntity) AdjustStyle(fn AdjustStyleFunc) Entity {
+ be.BaseEntity = be.BaseEntity.AdjustStyle(fn).(*BaseEntity)
+ return be
+}
+
func (be *BreakEntity) Clone() Entity {
return NewBreakEntity()
}
@@ -38,3 +48,7 @@ func (be *BreakEntity) PlainText() string {
func (be *BreakEntity) String() string {
return "&html.BreakEntity{},\n"
}
+
+func (be *BreakEntity) Draw(screen mauview.Screen) {
+ // No-op, the logic happens in containers
+}