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