aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msgviewer.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 94ba98c8..a74d693f 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -863,12 +863,9 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
}
func (pv *PartViewer) Cleanup() {
- if pv.pager != nil && pv.pager.Process != nil {
- err := pv.pager.Process.Kill()
- if err != nil {
- logging.Warnf("failed to kill pager process: %v", err)
- }
- pv.pager = nil
+ if pv.term != nil {
+ pv.term.Close(nil)
+ pv.term = nil
}
}