From f0df3fa5aa4f1dc4773a7ab11496747468ca6560 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 21 Jan 2010 05:36:27 +0100 Subject: directory: get_selection() returns *ordered* marked items --- TODO | 1 + ranger/fsobject/directory.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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: -- cgit 1.4.1-2-gfad0