mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-08 05:04:52 +08:00
Return Result by value from MatchItem
This commit is contained in:
1 parent
2db14b4308
commit
8452c78cc8
2 files changed
+16
-17
No files matched your search
+1
-1
@@ -260,7 +260,7 @@ func Run(opts *Options) (int, error) {
|
||||
return false
|
||||
}
|
||||
mutex.Lock()
|
||||
if result, _, _ := pattern.MatchItem(&item, false, slab); result != nil {
|
||||
if result, _, _ := pattern.MatchItem(&item, false, slab); result.item != nil {
|
||||
opts.Printer(transformer(&item))
|
||||
found = true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user