Skip to content

Commit

Permalink
chore(cmd): Only complete profile param separator if the template use…
Browse files Browse the repository at this point in the history
…s a param
  • Loading branch information
gabe565 committed Apr 27, 2024
1 parent 2972674 commit 9a12ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ See https://www.eff.org/dice for details on the available wordlists.`,
}
name := k + ":" + strconv.Itoa(v.Param)
pad := strings.Repeat(" ", longest-len(name))
if toComplete == k {
if toComplete == k && strings.Contains(v.Template, ".") {
k += ":"
}
named = append(named, fmt.Sprintf("%s\t%s%s -> %s", k, name, pad, buf.String()))
Expand Down

0 comments on commit 9a12ab7

Please sign in to comment.