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