summary refs log tree commit diff stats
path: root/ranger/gui/widgets/browsercolumn.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r--ranger/gui/widgets/browsercolumn.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 956fd301..b07d86ed 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -137,8 +137,10 @@ class BrowserColumn(Pager, Widget):
 			self.last_redraw_time = time()
 
 	def _preview_this_file(self, target):
+		maxsize = self.settings.max_filesize_for_preview
 		return self.settings.preview_files \
-				and not PREVIEW_BLACKLIST.search(target.basename)
+				and not PREVIEW_BLACKLIST.search(target.basename) \
+				and (maxsize is None or maxsize >= target.size)
 
 	def _draw_file(self):
 		"""Draw a preview of the file, if the settings allow it"""
f2554f'>^
afe6ac9 ^
b55bd70 ^
00e95e1 ^
5cf362c ^

97ced11 ^

5cf362c ^

b55bd70 ^
14d05e7 ^
97ced11 ^
a73a882 ^
b38905b ^
a73a882 ^
292ccc4 ^
f1fe19b ^
0a07591 ^
f1fe19b ^
9927b9e ^
4ee05b3 ^

97ced11 ^
f1fe19b ^

292ccc4 ^
fee8df6 ^
3a1343a ^
0ed0fa4 ^
19da197 ^


7b6d5ff ^
19da197 ^


7b6d5ff ^
ce04a66 ^

bab575c ^
ce04a66 ^


7b6d5ff ^
ce04a66 ^


7b6d5ff ^
ce04a66 ^
a73a882 ^



d6a6eca ^
e34c4ea ^
e21d93b ^
f1fe19b ^

a73a882 ^
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