diff options
Diffstat (limited to 'commands/compose/attach.go')
-rw-r--r-- | commands/compose/attach.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/attach.go b/commands/compose/attach.go index 50abda5..6080973 100644 --- a/commands/compose/attach.go +++ b/commands/compose/attach.go @@ -47,7 +47,7 @@ func (Attach) Execute(aerc *widgets.Aerc, args []string) error { return nil } - composer, _ := aerc.SelectedTab().(*widgets.Composer) + composer, _ := aerc.SelectedTabContent().(*widgets.Composer) composer.AddAttachment(path) aerc.PushSuccess(fmt.Sprintf("Attached %s", pathinfo.Name())) |