diff options
-rw-r--r-- | ranger/core/actions.py | 5 |
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: |