Reduce the number of Curses.refresh calls

pull/17/head
Junegunn Choi 11 years ago
parent 655fa5d9aa
commit 2d3a0a1034

4
fzf

@ -638,7 +638,9 @@ class FZF
Thread.new do
begin
while blk = @queue.shift
blk.call
blks = [blk]
blks << blk while blk = (@queue.shift(true) rescue nil)
blks.each { |blk| blk.call }
refresh
end
rescue Exception => e

Loading…
Cancel
Save