about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-20 02:48:42 +0200
committerhut <hut@lavabit.com>2009-07-20 02:48:42 +0200
commit1413a81544b42d55a942a00ec34f55a45d296627 (patch)
treeda69799691ada8d6835c314056782388977a1093
parent080e74951f679c9376b67199df1bebb498398e5c (diff)
downloadranger-1413a81544b42d55a942a00ec34f55a45d296627.tar.gz
cleaned up code/keys.rb
-rw-r--r--code/keys.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/code/keys.rb b/code/keys.rb
index 42b4314d..04e79e62 100644
--- a/code/keys.rb
+++ b/code/keys.rb
@@ -12,10 +12,7 @@ module Fm
 			if str =~ /^\s?(.*)(<cr>|<esc>)$/
 				@buffer.clear
 				if $2 == '<cr>'
-					begin
-						Dir.mkdir($1)
-					rescue
-					end
+					Dir.mkdir($1) rescue lograise
 					@pwd.schedule
 				end
 			end
@@ -25,10 +22,7 @@ module Fm
 			if str =~ /^\s?(.*)(<cr>|<esc>)$/
 				@buffer.clear
 				if $2 == '<cr>'
-					begin
-						File.open($1, 'a').close
-					rescue
-					end
+					File.open($1, 'a').close rescue lograise
 					@pwd.schedule
 				end
 			end
@@ -543,7 +537,7 @@ module Fm
 			/:[^<]*/
 			/[fF/!].*/
 			/r\d*\w*[^r]/
-			/(c[wmo]|cor|cd|mv).*/
+			/(c[wmo]|cd|mv).*/
 			/b(l(o(c(k(.*)?)?)?)?)?/
 			/m(k(d(i(r(.*)?)?)?)?)?/
 			/t(o(u(c(h(.*)?)?)?)?)?/