mirror of
https://github.com/junegunn/fzf.git
synced 2026-03-02 21:39:09 +08:00
Return Result by value from MatchItem
This commit is contained in:
@@ -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