summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--ranger/fsobject/directory.py2
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: