about summary refs log tree commit diff stats
path: root/code/search.rb
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-24 03:39:27 +0200
committerhut <hut@lavabit.com>2009-07-24 03:39:27 +0200
commitb0486dbfa34005258b882518ea30904a8211a3b0 (patch)
tree65229c70af2245f287cdfe7346ee222086536794 /code/search.rb
parentb7acb9cdd093dbaf0cbb033d78f91c3bd110a3f6 (diff)
downloadranger-b0486dbfa34005258b882518ea30904a8211a3b0.tar.gz
clean up, explain stuff, handle exceptions
Diffstat (limited to 'code/search.rb')
-rw-r--r--code/search.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/code/search.rb b/code/search.rb
index 2952f59a..27ea4044 100644
--- a/code/search.rb
+++ b/code/search.rb
@@ -22,16 +22,19 @@ module Fm
 	FIND_KEY_REGEXP = /f([#{ FIND_PROPERTIES.keys.join("") }])/
 	
 	def quicksearch(n)
-		log Option.search_method
 		case Option.search_method
 		when *FIND_PROPERTIES.values
 			quicksearch_by_property(n, Option.search_method)
+
 		when :handler
 			quicksearch_by_handler(n)
+
 		when :regexp
 			quicksearch_by_regexp(n)
+
 		else
 			raise "Wrong search method!"
+
 		end rescue lograise
 	end