about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 83cfcc08..1417ac96 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -489,7 +489,10 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
             if narg is not None:
                 mode = narg
             tfile = self.thisfile
-            selection = self.thistab.get_selection()
+            if not kw.get('selection', True):
+                selection = [tfile]
+            else:
+                selection = self.thistab.get_selection()
             if tfile.is_directory:
                 self.thistab.enter_dir(tfile)
             elif selection: