about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/keys.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/code/keys.rb b/code/keys.rb
index 21a6335e..ce23e8a9 100644
--- a/code/keys.rb
+++ b/code/keys.rb
@@ -367,11 +367,8 @@ module Fm
 			fork do exec 'x-terminal-emulator' end
 
 		when 'E'
-			cf = currentfile.path
-			unless cf.nil? or enter_dir_safely(cf)
-				closei
-				system VI % cf
-				starti
+			externally do
+				Action.run(RunContext.new(getfiles, nil, nil, 'editor'))
 			end
 
 		when /^[ri](\d*)([adetw]*)[ri]$/