about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-06 18:15:02 +0200
committerhut <hut@lavabit.com>2009-07-06 18:15:02 +0200
commit05cf5ffd7c7be1fcad626918ada4228bba7c90cd (patch)
treeb0807154506f8aad4352512f6cd65a1e2c943b59 /code
parentf215d9baeaa7a4105204068f59528a09f7b00a58 (diff)
downloadranger-05cf5ffd7c7be1fcad626918ada4228bba7c90cd.tar.gz
cleanup
Diffstat (limited to 'code')
-rw-r--r--code/fm.rb17
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