aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/open.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/open.go')
-rw-r--r--commands/msgview/open.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go
index 7615e9a8..05a3c63c 100644
--- a/commands/msgview/open.go
+++ b/commands/msgview/open.go
@@ -25,7 +25,7 @@ func (Open) Aliases() []string {
}
func (Open) Complete(aerc *widgets.Aerc, args []string) []string {
- mv := aerc.SelectedTab().(*widgets.MessageViewer)
+ mv := aerc.SelectedTabContent().(*widgets.MessageViewer)
if mv != nil {
if p := mv.SelectedMessagePart(); p != nil {
return commands.CompletionFromList(aerc, p.Links, args)
@@ -35,7 +35,7 @@ func (Open) Complete(aerc *widgets.Aerc, args []string) []string {
}
func (Open) Execute(aerc *widgets.Aerc, args []string) error {
- mv := aerc.SelectedTab().(*widgets.MessageViewer)
+ mv := aerc.SelectedTabContent().(*widgets.MessageViewer)
p := mv.SelectedMessagePart()
if args[0] == "open-link" && len(args) > 1 {