diff options
Diffstat (limited to 'src/core.go')
| -rw-r--r-- | src/core.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core.go b/src/core.go index da7da137..a4fbfe04 100644 --- a/src/core.go +++ b/src/core.go @@ -2,6 +2,7 @@ package fzf import ( + "maps" "os" "sync" "time" @@ -225,10 +226,7 @@ func Run(opts *Options) (int, error) { } patternBuilder := func(runes []rune) *Pattern { denyMutex.Lock() - denylistCopy := make(map[int32]struct{}) - for k, v := range denylist { - denylistCopy[k] = v - } + denylistCopy := maps.Clone(denylist) denyMutex.Unlock() return BuildPattern(cache, patternCache, opts.Fuzzy, opts.FuzzyAlgo, opts.Extended, opts.Case, opts.Normalize, forward, withPos, |
