aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/toggle-key-passthrough.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/toggle-key-passthrough.go')
-rw-r--r--commands/msgview/toggle-key-passthrough.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msgview/toggle-key-passthrough.go b/commands/msgview/toggle-key-passthrough.go
index 1ac370e6..cbc4565e 100644
--- a/commands/msgview/toggle-key-passthrough.go
+++ b/commands/msgview/toggle-key-passthrough.go
@@ -25,7 +25,7 @@ func (ToggleKeyPassthrough) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: toggle-key-passthrough")
}
- mv, _ := aerc.SelectedTab().(*widgets.MessageViewer)
+ mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer)
keyPassthroughEnabled := mv.ToggleKeyPassthrough()
if acct := mv.SelectedAccount(); acct != nil {
acct.SetStatus(statusline.Passthrough(keyPassthroughEnabled))