From 93454fb6cc2c0b77f7c44128561958bde7ed2890 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 23 Dec 2009 19:39:53 +0100 Subject: fixed marking :) --- ranger/actions.py | 9 +++++---- 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 -- cgit 1.4.1-2-gfad0