summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-21 05:36:27 +0100
committerhut <hut@lavabit.com>2010-01-21 05:36:27 +0100
commitf0df3fa5aa4f1dc4773a7ab11496747468ca6560 (patch)
treed31b720e1d694a4459730b7a62ed469698ef8d7d /ranger
parent22601e2d7f1851649e7977e04c3857e21681ff7e (diff)
downloadranger-f0df3fa5aa4f1dc4773a7ab11496747468ca6560.tar.gz
directory: get_selection() returns *ordered* marked items
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index de2370a4..0741532d 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -129,7 +129,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 		"""READ ONLY"""
 		self._gc_marked_items()
 		if self.marked_items:
-			return list(self.marked_items)
+			return [item for item in self.files if item.marked]
 		elif self.pointed_obj:
 			return [self.pointed_obj]
 		else: