Skip to content

Commit

Permalink
sleep to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmtmmnk committed Dec 1, 2020
1 parent 7fa1592 commit 0e1592c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzzyfinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,10 @@ func (f *finder) find(slice interface{}, itemFunc func(i int) string, opts []Opt
f.draw(10 * time.Millisecond)

err := f.readKey()
// hack for earning time to filter exec
if isInTesting() {
time.Sleep(50 * time.Millisecond)
}
switch {
case err == ErrAbort:
return nil, ErrAbort
Expand Down

0 comments on commit 0e1592c

Please sign in to comment.