summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2013-11-01 02:02:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2013-11-01 02:02:00 +0900
commit311c4a36e28fcfcc3406993be4c0f27f54c19b66 (patch)
tree11e78864ba3ea655e32b5c4b37f6c5f28af09a06
parentb98fba4cf10d2ca03d4dd47ef2d803cd9982e392 (diff)
downloadfzf-311c4a36e28fcfcc3406993be4c0f27f54c19b66.tar.gz
Remove initial delay
-rwxr-xr-xfzf4
1 files changed, 2 insertions, 2 deletions
diff --git a/fzf b/fzf
index c2b588c0..8e5cb95e 100755
--- a/fzf
+++ b/fzf
@@ -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