summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-09-07 23:02:09 +0200
committertoonn <toonn@toonn.io>2018-09-07 23:02:09 +0200
commit4e7d402f4f58350d9bd3f553c572cbffcc7caf74 (patch)
tree3f15e0e7884ff78a5f99e1617a650992b20419d4
parentfa1d88115ba3a75cc2ea6d64b15553d30255e6aa (diff)
parent37d39a99185b2eb43c2c9a807a1c4ed4477ebac5 (diff)
downloadranger-4e7d402f4f58350d9bd3f553c572cbffcc7caf74.tar.gz
Merge branch 'moveright'
-rw-r--r--ranger/core/actions.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 73c9fa51..1c5459d0 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -422,7 +422,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
             are multiple choices
         label: a string to select an opening method by its label
         flags: a string specifying additional options, see `man rifle`
-        mimetyle: pass the mimetype to rifle, overriding its own guess
+        mimetype: pass the mimetype to rifle, overriding its own guess
         """
 
         mode = kw['mode'] if 'mode' in kw else 0
@@ -504,7 +504,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 kw.get('selection', True):
+                selection = self.thistab.get_selection()
+            else:
+                selection = [tfile]
             if tfile.is_directory:
                 self.thistab.enter_dir(tfile)
             elif selection: