diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2013-11-24 13:40:02 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2013-11-24 13:40:02 +0900 |
commit | 2d3a0a1034c21ddc7ef7829cacb24a92d93c8560 (patch) | |
tree | 3ffca521bb120b7162614b03f41c176b31a2c5b2 | |
parent | 655fa5d9aaaabe911dfa57961028e3c816525a22 (diff) |
Reduce the number of Curses.refresh calls
-rwxr-xr-x | fzf | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |