diff options
Diffstat (limited to 'commands/msgview/close.go')
-rw-r--r-- | commands/msgview/close.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msgview/close.go b/commands/msgview/close.go index 37f66ad3..1fed0b7c 100644 --- a/commands/msgview/close.go +++ b/commands/msgview/close.go @@ -24,7 +24,7 @@ func (Close) Execute(aerc *widgets.Aerc, args []string) error { if len(args) != 1 { return errors.New("Usage: close") } - mv, _ := aerc.SelectedTab().(*widgets.MessageViewer) + mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer) mv.Close() aerc.RemoveTab(mv) return nil |