mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-05 21:17:49 +00:00
Reduce the number of Curses.refresh calls
This commit is contained in:
parent
655fa5d9aa
commit
2d3a0a1034
4
fzf
4
fzf
@ -638,7 +638,9 @@ class FZF
|
|||||||
Thread.new do
|
Thread.new do
|
||||||
begin
|
begin
|
||||||
while blk = @queue.shift
|
while blk = @queue.shift
|
||||||
blk.call
|
blks = [blk]
|
||||||
|
blks << blk while blk = (@queue.shift(true) rescue nil)
|
||||||
|
blks.each { |blk| blk.call }
|
||||||
refresh
|
refresh
|
||||||
end
|
end
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
|
Loading…
Reference in New Issue
Block a user