about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
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