summaryrefslogtreecommitdiff
path: root/src/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.go')
-rw-r--r--src/options.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/options.go b/src/options.go
index 27ec3d78..f3ba8518 100644
--- a/src/options.go
+++ b/src/options.go
@@ -3,6 +3,7 @@ package fzf
import (
"errors"
"fmt"
+ "maps"
"os"
"regexp"
"strconv"
@@ -2603,9 +2604,7 @@ func parseOptions(index *int, opts *Options, allArgs []string) error {
if err != nil {
return err
}
- for k, v := range chords {
- opts.Expect[k] = v
- }
+ maps.Copy(opts.Expect, chords)
case "--no-expect":
opts.Expect = make(map[tui.Event]string)
case "--enabled", "--no-phony":