From 05cf5ffd7c7be1fcad626918ada4228bba7c90cd Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 6 Jul 2009 18:15:02 +0200 Subject: cleanup --- code/fm.rb | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'code') diff --git a/code/fm.rb b/code/fm.rb index d6697eda..c45a1233 100644 --- a/code/fm.rb +++ b/code/fm.rb @@ -238,15 +238,6 @@ module Fm Dir.chdir(@pwd.path) end - def currentfile() @pwd.files[@pwd.pos] end - def selection() - if @marked.empty? - [currentfile] - else - @marked.dup - end - end - def move_to_trash!(fn) unless File.exists?(@trash) Dir.mkdir(@trash) @@ -309,8 +300,12 @@ module Fm end end - def getfiles() - @marked.empty? ? [currentfile] : @marked + def currentfile + @pwd.files[@pwd.pos] + end + def getfiles + @marked.empty? ? [currentfile] : @marked.dup end + alias selection getfiles end -- cgit 1.4.1-2-gfad0