aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/attach-key.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose/attach-key.go')
-rw-r--r--commands/compose/attach-key.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/attach-key.go b/commands/compose/attach-key.go
index c9212e3d..208e9fd8 100644
--- a/commands/compose/attach-key.go
+++ b/commands/compose/attach-key.go
@@ -25,7 +25,7 @@ func (AttachKey) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("Usage: attach-key")
}
- composer, _ := aerc.SelectedTab().(*widgets.Composer)
+ composer, _ := aerc.SelectedTabContent().(*widgets.Composer)
return composer.SetAttachKey(!composer.AttachKey())
}