summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2013-11-24 20:40:23 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2013-11-24 20:40:23 +0900
commit39af56cf8f9d1a4aa32fb686e0228f3fdb44a081 (patch)
tree39234eb23e1050f016bb040098af18dd35c4fed9
parent2d3a0a1034c21ddc7ef7829cacb24a92d93c8560 (diff)
Revert "Reduce the number of Curses.refresh calls"0.5.0
This reverts commit 2d3a0a1034c21ddc7ef7829cacb24a92d93c8560 (which doesn't make any noticeable difference)
-rwxr-xr-xfzf4
1 files changed, 1 insertions, 3 deletions
diff --git a/fzf b/fzf
index 684759f2..2e53d985 100755
--- a/fzf
+++ b/fzf
@@ -638,9 +638,7 @@ class FZF
Thread.new do
begin
while blk = @queue.shift
- blks = [blk]
- blks << blk while blk = (@queue.shift(true) rescue nil)
- blks.each { |blk| blk.call }
+ blk.call
refresh
end
rescue Exception => e