about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-29 18:46:40 +0200
committerhut <hut@lavabit.com>2009-07-29 18:46:40 +0200
commitc5b816b28209dce887a98da93f119a03caac5eb5 (patch)
tree766e2791cb56478c8a8fe004869deeb96f518a43
parentb3a4657c19cafdf79b9a1713d5f64afd4007c30f (diff)
downloadranger-c5b816b28209dce887a98da93f119a03caac5eb5.tar.gz
dont draw 2x "empty" inside an empty directory
-rw-r--r--code/draw.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/draw.rb b/code/draw.rb
index d56a89a2..7bdbe92d 100644
--- a/code/draw.rb
+++ b/code/draw.rb
@@ -54,8 +54,9 @@ module Fm
 			Scheduler << d
 			return
 		elsif d.read? and d.empty?
-			puti l, left, 'empty'.ljust(wid+1)
-			column_clear(c, 1)
+			l = 0
+			puti l+=1, left, 'empty'.ljust(wid+1) unless c == COLUMNS - 1 and @path[-1].empty?
+			column_clear(c, l)
 			return
 		end