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