Reduce timeout to 0.1 sec

This commit is contained in:
Junegunn Choi 2014-03-08 01:55:11 +09:00
parent 871dfb709d
commit 875f9b6534

2
fzf
View File

@ -753,7 +753,7 @@ class FZF
end end
end end
def read_nb chars = 1, default = nil, tries = 20 def read_nb chars = 1, default = nil, tries = 10
tries.times do |_| tries.times do |_|
begin begin
return @tty.read_nonblock(chars).ord return @tty.read_nonblock(chars).ord