From 3b967916bdb9cd0c5fb289a5ac1087b5e50bd3c3 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 15 Jun 2009 20:00:29 +0200 Subject: temporarily disabled preview of archives --- code/fm/draw.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/fm') diff --git a/code/fm/draw.rb b/code/fm/draw.rb index f326ab23..482abf59 100644 --- a/code/fm/draw.rb +++ b/code/fm/draw.rb @@ -9,7 +9,7 @@ module Fm m = lines - 2 attr_set(Color.base) left, wid = get_boundaries(n) - if file.ext =~ /(?:rar|zip|7z|tar|gz)$/ and file.size < 10485760 + if false and file.ext =~ /(?:rar|zip|7z|tar|gz)$/ and file.size < 10485760 text = `aunpack -l #{file.sh} 2>> /dev/null` text.each_line do |l| puti i+1, left, l[0, wid-1].ljust(wid) -- cgit 1.4.1-2-gfad0