aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index f38b186a..684c99cb 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -406,6 +406,12 @@ func (ps *PartSwitcher) Focus(focus bool) {
}
}
+func (ps *PartSwitcher) Show(visible bool) {
+ if ps.parts[ps.selected].term != nil {
+ ps.parts[ps.selected].term.Show(visible)
+ }
+}
+
func (ps *PartSwitcher) Event(event tcell.Event) bool {
return ps.parts[ps.selected].Event(event)
}
@@ -505,6 +511,10 @@ func (mv *MessageViewer) Focus(focus bool) {
mv.switcher.Focus(focus)
}
+func (mv *MessageViewer) Show(visible bool) {
+ mv.switcher.Show(visible)
+}
+
type PartViewer struct {
acctConfig *config.AccountConfig
err error