aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/next-part.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/next-part.go')
-rw-r--r--commands/msgview/next-part.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msgview/next-part.go b/commands/msgview/next-part.go
index f44ffabf..652dccb6 100644
--- a/commands/msgview/next-part.go
+++ b/commands/msgview/next-part.go
@@ -35,7 +35,7 @@ func (NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error {
return nextPrevPartUsage(args[0])
}
}
- mv, _ := aerc.SelectedTab().(*widgets.MessageViewer)
+ mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer)
for ; n > 0; n-- {
if args[0] == "prev-part" {
mv.PreviousPart()