Remove initial delay

This commit is contained in:
Junegunn Choi 2013-11-01 02:02:00 +09:00
parent b98fba4cf1
commit 311c4a36e2
1 changed files with 2 additions and 2 deletions

4
fzf
View File

@ -295,7 +295,7 @@ searcher = Thread.new {
q = ''
vcursor = 0
zz = [0, 0]
delay = 0.0
delay = -5
begin
while true
@ -396,7 +396,7 @@ searcher = Thread.new {
end#new_search
# This small delay reduces the number of partial lists
sleep [0.2, delay += 0.05].min unless user_input
sleep [20, delay += 5].min * 0.01 unless user_input
if events.delete(:vcursor) || new_search
@mtx.synchronize do