aboutsummaryrefslogtreecommitdiffstats
path: root/completer/completer.go
diff options
context:
space:
mode:
Diffstat (limited to 'completer/completer.go')
-rw-r--r--completer/completer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/completer/completer.go b/completer/completer.go
index 4a65ca7d..c5624f9d 100644
--- a/completer/completer.go
+++ b/completer/completer.go
@@ -127,7 +127,7 @@ func (c *Completer) getAddressCmd(s string) (*exec.Cmd, error) {
if strings.TrimSpace(c.AddressBookCmd) == "" {
return nil, fmt.Errorf("no command configured")
}
- queryCmd := strings.Replace(c.AddressBookCmd, "%s", s, -1)
+ queryCmd := strings.ReplaceAll(c.AddressBookCmd, "%s", s)
parts, err := shlex.Split(queryCmd)
if err != nil {
return nil, fmt.Errorf("could not lex command")