diff options
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 4 |
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""" |