diff options
author | hut <hut@lavabit.com> | 2009-07-29 18:46:40 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-29 18:46:40 +0200 |
commit | c5b816b28209dce887a98da93f119a03caac5eb5 (patch) | |
tree | 766e2791cb56478c8a8fe004869deeb96f518a43 | |
parent | b3a4657c19cafdf79b9a1713d5f64afd4007c30f (diff) | |
download | ranger-c5b816b28209dce887a98da93f119a03caac5eb5.tar.gz |
dont draw 2x "empty" inside an empty directory
-rw-r--r-- | code/draw.rb | 5 |
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 |