mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-11 10:38:12 +00:00
Remove initial delay
This commit is contained in:
parent
b98fba4cf1
commit
311c4a36e2
4
fzf
4
fzf
@ -295,7 +295,7 @@ searcher = Thread.new {
|
|||||||
q = ''
|
q = ''
|
||||||
vcursor = 0
|
vcursor = 0
|
||||||
zz = [0, 0]
|
zz = [0, 0]
|
||||||
delay = 0.0
|
delay = -5
|
||||||
|
|
||||||
begin
|
begin
|
||||||
while true
|
while true
|
||||||
@ -396,7 +396,7 @@ searcher = Thread.new {
|
|||||||
end#new_search
|
end#new_search
|
||||||
|
|
||||||
# This small delay reduces the number of partial lists
|
# 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
|
if events.delete(:vcursor) || new_search
|
||||||
@mtx.synchronize do
|
@mtx.synchronize do
|
||||||
|
Loading…
Reference in New Issue
Block a user