aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/close.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/close.go')
-rw-r--r--commands/msgview/close.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/msgview/close.go b/commands/msgview/close.go
index 5e4f3e92..428dc51f 100644
--- a/commands/msgview/close.go
+++ b/commands/msgview/close.go
@@ -3,7 +3,7 @@ package msgview
import (
"errors"
- "git.sr.ht/~rjarry/aerc/widgets"
+ "git.sr.ht/~rjarry/aerc/app"
)
type Close struct{}
@@ -16,15 +16,15 @@ func (Close) Aliases() []string {
return []string{"close"}
}
-func (Close) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Close) Complete(aerc *app.Aerc, args []string) []string {
return nil
}
-func (Close) Execute(aerc *widgets.Aerc, args []string) error {
+func (Close) Execute(aerc *app.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: close")
}
- mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer)
+ mv, _ := aerc.SelectedTabContent().(*app.MessageViewer)
aerc.RemoveTab(mv, true)
return nil
}