diff options
author | hut <hut@lavabit.com> | 2010-01-21 05:36:27 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-21 05:36:27 +0100 |
commit | f0df3fa5aa4f1dc4773a7ab11496747468ca6560 (patch) | |
tree | d31b720e1d694a4459730b7a62ed469698ef8d7d /ranger | |
parent | 22601e2d7f1851649e7977e04c3857e21681ff7e (diff) | |
download | ranger-f0df3fa5aa4f1dc4773a7ab11496747468ca6560.tar.gz |
directory: get_selection() returns *ordered* marked items
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/directory.py | 2 |
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: |