From db0e24ccc268d0a9c7575d660a9397e53747894b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 10 Apr 2019 21:06:19 +0300 Subject: Use already parsed events for replies if possible --- ui/messages/html/codeblock.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/messages/html/codeblock.go') diff --git a/ui/messages/html/codeblock.go b/ui/messages/html/codeblock.go index ec6181d..4a0766c 100644 --- a/ui/messages/html/codeblock.go +++ b/ui/messages/html/codeblock.go @@ -37,6 +37,13 @@ func NewCodeBlockEntity(children []Entity, background tcell.Style) *CodeBlockEnt } } +func (ce *CodeBlockEntity) Clone() Entity { + return &CodeBlockEntity{ + BaseEntity: ce.BaseEntity.Clone().(*BaseEntity), + Background: ce.Background, + } +} + func (ce *CodeBlockEntity) Draw(screen mauview.Screen) { screen.Fill(' ', ce.Background) ce.BaseEntity.Draw(screen) -- cgit v1.2.3