summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-12-11 22:53:38 +0100
committerhut <hut@lavabit.com>2010-12-11 22:53:38 +0100
commitee7f171116b57514e2ce11cb3b7932a22478be79 (patch)
tree54e3056572c9bf6873e44b669c35f571d3b34897 /ranger
parenta30885773f28e93b8bbe716a4ba444e90e3ba4d8 (diff)
downloadranger-ee7f171116b57514e2ce11cb3b7932a22478be79.tar.gz
defaults.commands: let open_with use selection, not just 1 file
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index db73ac45..6258d30d 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -135,7 +135,7 @@ class open_with(Command):
 		line = parse(self.line)
 		app, flags, mode = self._get_app_flags_mode(line.rest(1))
 		self.fm.execute_file(
-				files = [self.fm.env.cf],
+				files = [f for f in self.fm.env.cwd.get_selection()],
 				app = app,
 				flags = flags,
 				mode = mode)