diff options
author | hut <hut@lavabit.com> | 2009-07-06 18:15:02 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-06 18:15:02 +0200 |
commit | 05cf5ffd7c7be1fcad626918ada4228bba7c90cd (patch) | |
tree | b0807154506f8aad4352512f6cd65a1e2c943b59 | |
parent | f215d9baeaa7a4105204068f59528a09f7b00a58 (diff) | |
download | ranger-05cf5ffd7c7be1fcad626918ada4228bba7c90cd.tar.gz |
cleanup
-rw-r--r-- | code/fm.rb | 17 |
1 files changed, 6 insertions, 11 deletions
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 |