diff options
-rw-r--r-- | ranger/core/actions.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index d493da48..2ba696ac 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -538,7 +538,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): except: pass - def mark_files(self, all=False, toggle=False, val=None, movedown=None, narg=1): + def mark_files(self, all=False, toggle=False, val=None, movedown=None, narg=None): """A wrapper for the directory.mark_xyz functions. Arguments: @@ -561,6 +561,11 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): if val is None and toggle is False: return + if narg == None: + narg = 1 + else: + all = False + if all: if toggle: cwd.toggle_all_marks() |