about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-18 01:17:01 +0200
committerhut <hut@lavabit.com>2009-06-18 01:17:01 +0200
commit8855544ded5a6406b7ad3cb837ec22adc91f55ae (patch)
treef72f9a436f9bbb2a25fb23c4e2ebf3aa08b43be2
parente07a7764f57ba94b8ab29731981399496ee66c24 (diff)
downloadranger-8855544ded5a6406b7ad3cb837ec22adc91f55ae.tar.gz
key X kills ranger and starts a shell
-rw-r--r--code/fm/keys.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/code/fm/keys.rb b/code/fm/keys.rb
index cffb7b2b..1b1d4fd6 100644
--- a/code/fm/keys.rb
+++ b/code/fm/keys.rb
@@ -174,7 +174,11 @@ module Fm
 			@bars.first.kill unless @bars.empty?
 
 		when 'X'
-			@bars.last.kill unless @bars.empty?
+#			@bars.last.kill unless @bars.empty?
+
+			closei
+			exec(ENV['SHELL'])
+			exit
 
 		when 'J'
 			@pwd.pos += lines/2