about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-23 19:39:53 +0100
committerhut <hut@lavabit.com>2009-12-23 19:39:53 +0100
commit93454fb6cc2c0b77f7c44128561958bde7ed2890 (patch)
tree4f59be409543d41b419fd3d4811a1c18a1243708
parent3201b163ffcabd31ab5b82e3192ab43ed5ec006e (diff)
downloadranger-93454fb6cc2c0b77f7c44128561958bde7ed2890.tar.gz
fixed marking :)
-rw-r--r--ranger/actions.py9
-rw-r--r--ranger/fsobject/directory.py4
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