Use already parsed events for replies if possible

This commit is contained in:
Tulir Asokan
2019-04-10 21:06:19 +03:00
parent 9132e2b750
commit db0e24ccc2
18 changed files with 245 additions and 23 deletions

View File

@@ -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)