Skip to content

Commit

Permalink
Abort fuzzy search on edit if requested
Browse files Browse the repository at this point in the history
Fixes gopasspw#2490

RELEASE_NOTES=[BUGFIX] Honor fuzzy search abort

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz committed Dec 25, 2022
1 parent eaffef9 commit 0ffd977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/action/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *Action) editFindName(ctx context.Context, name string) (string, error)
if err := s.find(ctx, nil, name, cb, false); err != nil {
debug.Log("failed to find secret %s: %s", name, err)

return name, nil
return name, err
}

cont, err := termio.AskForBool(ctx, fmt.Sprintf("Secret does not exist %q. Found possible match in %q. Edit existing entry?", name, newName), true)
Expand Down

0 comments on commit 0ffd977

Please sign in to comment.