diff options
-rw-r--r-- | ranger/actions.py | 9 | ||||
-rw-r--r-- | ranger/fsobject/directory.py | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/ranger/actions.py b/ranger/actions.py index 9afb0ade..e2583591 100644 --- a/ranger/actions.py +++ b/ranger/actions.py @@ -243,10 +243,11 @@ class Actions(EnvironmentAware, SettingsAware): def mark(self, all=False, toggle=False, val=None, movedown=None): """ A wrapper for the directory.mark_xyz functions. - If all is True, change the marked-status of all files/directories. - If toggle is True, toggle the marked-status. - If val is True, mark the file(s). If False, unmark them. - If movedown is True, move the pointer down finally. + + Arguments: + all - change all files of the current directory at once? + toggle - toggle the marked-status? + val - mark or unmark? """ if self.env.pwd is None: diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 6ca25475..99a4bc61 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -139,9 +139,9 @@ class Directory(SuperClass, SettingsAware): for item in self.files: if item.path in marked_paths: - self.mark_item(item) + self.mark_item(item, True) else: - self.unmark_item(item) + self.mark_item(item, False) self.old_directories_first = None |