aboutsummaryrefslogtreecommitdiffstats
path: root/commands/eml.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/eml.go')
-rw-r--r--commands/eml.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/commands/eml.go b/commands/eml.go
index adacd05b..fe735243 100644
--- a/commands/eml.go
+++ b/commands/eml.go
@@ -5,14 +5,13 @@ import (
"fmt"
"io"
"os"
- "strings"
"git.sr.ht/~rjarry/aerc/app"
"git.sr.ht/~rjarry/aerc/lib"
)
type Eml struct {
- Path string `opt:"path" required:"false"`
+ Path string `opt:"path" required:"false" complete:"CompletePath"`
}
func init() {
@@ -23,8 +22,8 @@ func (Eml) Aliases() []string {
return []string{"eml", "preview"}
}
-func (Eml) Complete(args []string) []string {
- return CompletePath(strings.Join(args, " "))
+func (*Eml) CompletePath(arg string) []string {
+ return CompletePath(arg)
}
func (e Eml) Execute(args []string) error {