summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-02-03 17:17:26 +0100
committernfnty <git@nfnty.se>2017-02-03 17:17:26 +0100
commitb7a7623934574f0f9c566d452c18b53f707dfdd8 (patch)
tree0657d488b2355a704f8aa44e1839783d9bb796ed /ranger
parent2564a3606619ea1a343e65bf92a1c9e5b34e5537 (diff)
downloadranger-b7a7623934574f0f9c566d452c18b53f707dfdd8.tar.gz
Fix hidden filter for flat
Fixes #790
Diffstat (limited to 'ranger')
-rw-r--r--ranger/container/directory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py
index b23abe04..c6dba2ef 100644
--- a/ranger/container/directory.py
+++ b/ranger/container/directory.py
@@ -233,7 +233,8 @@ class Directory(  # pylint: disable=too-many-instance-attributes,too-many-public
         if not self.settings.show_hidden and self.settings.hidden_filter:
             hidden_filter = re.compile(self.settings.hidden_filter)
             hidden_filter_search = hidden_filter.search
-            filters.append(lambda fobj: not hidden_filter_search(fobj.basename))
+            filters.append(
+                lambda fobj: not hidden_filter_search(fobj.relative_path.split(os.path.sep)[0]))
         if self.filter:
             filter_search = self.filter.search
             filters.append(lambda fobj: filter_search(fobj.basename))
vabit.com> 2010-01-20 01:43:40 +0100 readme: improved' href='/akspecs/ranger/commit/README?h=v1.5.5&id=78a7d7628b5ee969ba47b440f287af02729fd827'>78a7d762 ^
36e4e71e ^

78a7d762 ^
36e4e71e ^










































306c76d8 ^







b6aff4c3 ^

306c76d8 ^

36e4e71e ^





b6aed5ef ^
36e4e71e ^




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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101