diff options
| author | mickychang9 <mickychang9@outlook.com> | 2025-09-29 17:11:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-29 18:11:19 +0900 |
| commit | 760d1b7c5847c1c9782271966fe8a36bbf027818 (patch) | |
| tree | 5a8f1083fe9f6b3734f8f8e60a5d661dab12a1aa /src/options.go | |
| parent | 9bdacc8df24a319c48576c2011dbcbde81a925ec (diff) | |
| download | fzf-760d1b7c5847c1c9782271966fe8a36bbf027818.tar.gz | |
refactor: use maps.Copy and maps.Clone (#4518)
Signed-off-by: mickychang9 <mickychang9@outlook.com>
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 5 |
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": |
