summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-12 19:15:03 +0200
committerhut <hut@lavabit.com>2009-06-12 19:15:03 +0200
commitccd1fe0ec9a3a05cf4f5016ca7732837dc51e33e (patch)
treec2170fe690e0fa4ed4f85890dafc060ed0ad2beb /code
parent87e935f7fe07430792e4699495a5477b38736567 (diff)
downloadranger-ccd1fe0ec9a3a05cf4f5016ca7732837dc51e33e.tar.gz
improved behaviour at preview row when still generating
Diffstat (limited to 'code')
-rw-r--r--code/cli.rb4
-rw-r--r--code/draw.rb5
2 files changed, 7 insertions, 2 deletions
diff --git a/code/cli.rb b/code/cli.rb
index ab962eb3..c982d0bd 100644
--- a/code/cli.rb
+++ b/code/cli.rb
@@ -54,6 +54,10 @@ module CLI
 		@@colortable = []
 	end
 
+	def self.refresh
+		Ncurses.refresh
+	end
+
 	# Close the Interface
 	def closei
 		@@running = false
diff --git a/code/draw.rb b/code/draw.rb
index 67e3f7de..b07eb31c 100644
--- a/code/draw.rb
+++ b/code/draw.rb
@@ -42,9 +42,9 @@ module Fm
 		right = left + wid
 		
 		if not d.read?
-			puti l, left, 'reading...'.ljust(wid+1)
+#			puti l, left, "" * (wid + 1)
 			Scheduler << d
-			column_clear(c, 1)
+#			column_clear(c, 1)
 			return
 		elsif d.read? and d.empty?
 			puti l, left, 'empty'.ljust(wid+1)
@@ -280,6 +280,7 @@ module Fm
 
 			movi(@pwd.pos + 1 - get_offset(@pwd, lines), @cur_y)
 		end
+		CLI.refresh
 	end
 
 	def self.draw_bars()