diff options
Diffstat (limited to 'ranger/container/file.py')
-rw-r--r-- | ranger/container/file.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/container/file.py b/ranger/container/file.py index 7c11dc63..3205ce61 100644 --- a/ranger/container/file.py +++ b/ranger/container/file.py @@ -68,6 +68,8 @@ class File(FileSystemObject): return False if not self.accessible: return False + if self.size > self.fm.settings.preview_max_size: + return False if self.fm.settings.preview_script and \ self.fm.settings.use_preview_script: return True |