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 | |
parent | 22601e2d7f1851649e7977e04c3857e21681ff7e (diff) | |
download | ranger-f0df3fa5aa4f1dc4773a7ab11496747468ca6560.tar.gz |
directory: get_selection() returns *ordered* marked items
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | ranger/fsobject/directory.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO b/TODO index c3be20c7..8549caba 100644 --- a/TODO +++ b/TODO @@ -37,6 +37,7 @@ General (X) #47 10/01/19 less restricive auto preview (X) #48 10/01/19 abbreviate commands with first unambiguous substring ( ) #50 10/01/19 add more unit tests + ( ) #51 10/01/21 remove directory.marked_items ? Bugs 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: |