aboutsummaryrefslogtreecommitdiffstats
path: root/commands/exec.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/exec.go')
-rw-r--r--commands/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/exec.go b/commands/exec.go
index bce62bd7..8757a51a 100644
--- a/commands/exec.go
+++ b/commands/exec.go
@@ -33,7 +33,7 @@ func (ExecCmd) Execute(aerc *widgets.Aerc, args []string) error {
cmd := exec.Command(args[1], args[2:]...)
env := os.Environ()
- switch view := aerc.SelectedTab().(type) {
+ switch view := aerc.SelectedTabContent().(type) {
case *widgets.AccountView:
env = append(env, fmt.Sprintf("account=%s", view.AccountConfig().Name))
env = append(env, fmt.Sprintf("folder=%s", view.Directories().Selected()))