Fix bug introduced by af2f092b. Fix #67

This commit is contained in:
ppom 2024-01-10 12:00:00 +01:00
parent 48fb6a85a5
commit 03862b33a6

View File

@ -105,7 +105,7 @@ func (a *Action) exec(match string) {
var computedCommand []string
if a.filter.pattern != nil {
computedCommand := make([]string, 0, len(a.Cmd))
computedCommand = make([]string, 0, len(a.Cmd))
for _, item := range a.Cmd {
computedCommand = append(computedCommand, strings.ReplaceAll(item, a.filter.pattern.nameWithBraces, match))