m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

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
def read_nb chars = 1, default = nil, tries = 20
def read_nb chars = 1, default = nil, tries = 10
tries.times do |_|
begin
return @tty.read_nonblock(chars).ord