aboutsummaryrefslogtreecommitdiffstats
path: root/commands/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/commands.go')
-rw-r--r--commands/commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/commands.go b/commands/commands.go
index cf96a39e..0a7050e9 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -75,11 +75,11 @@ func templateData(
cfg *config.AccountConfig,
msg *models.MessageInfo,
) models.TemplateData {
- var folder string
+ var folder *models.Directory
acct := aerc.SelectedAccount()
if acct != nil {
- folder = acct.SelectedDirectory()
+ folder = acct.Directories().SelectedDirectory()
}
if cfg == nil && acct != nil {
cfg = acct.AccountConfig()