summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/directory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py
index 486b23fe..3a609cf6 100644
--- a/ranger/container/directory.py
+++ b/ranger/container/directory.py
@@ -185,6 +185,8 @@ class Directory(FileSystemObject, Accumulator, Loadable):
     def get_selection(self):
         """READ ONLY"""
         self._gc_marked_items()
+        if not self.files:
+            return []
         if self.marked_items:
             return [item for item in self.files if item.marked]
         elif self.pointed_obj:
03-15 21:03:12 -0700 committer Kartik Agaram <vc@akkartik.com> 2020-03-15 21:03:12 -0700 6153 - switch 'main' to use Mu strings' href='/akkartik/mu/commit/mu-init.subx?h=main&id=c48ce3c8bfb6d1578f2530ed84b8e7b25d435b6d'>c48ce3c8 ^
7ca19e4e ^
c48ce3c8 ^































7ca19e4e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56