diff options
author | hut <hut@lavabit.com> | 2009-06-12 19:15:03 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-12 19:15:03 +0200 |
commit | ccd1fe0ec9a3a05cf4f5016ca7732837dc51e33e (patch) | |
tree | c2170fe690e0fa4ed4f85890dafc060ed0ad2beb | |
parent | 87e935f7fe07430792e4699495a5477b38736567 (diff) | |
download | ranger-ccd1fe0ec9a3a05cf4f5016ca7732837dc51e33e.tar.gz |
improved behaviour at preview row when still generating
-rw-r--r-- | code/cli.rb | 4 | ||||
-rw-r--r-- | code/draw.rb | 5 |
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() |