Skip to content
Myr

Gradually increase delay upto 0.2 seconds

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent a03b5c8 · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:fzf+2 added-5 removed
293 unmodified lines
294 plcount = 0 # prev list count295 q = ''296 vcursor = 0297 zz = [0, 0]298 started = false298 delay = 0.0299300 begin301 while true302 wait_for_completion = nil
92 unmodified lines
395 end396 end#new_search397398 # This small delay reduces the number of partial lists399 if started && !user_input400 sleep 0.2401 end402 started = true399 sleep [0.2, delay += 0.05].min unless user_input400401 if events.delete(:vcursor) || new_search402 @mtx.synchronize do403 plcount = [@matches.length, max_items].min
140 unmodified lines