diff options
Diffstat (limited to 'ranger/container/file.py')
-rw-r--r-- | ranger/container/file.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/container/file.py b/ranger/container/file.py index a404ef91..b1245647 100644 --- a/ranger/container/file.py +++ b/ranger/container/file.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Roman Zimbelmann <hut@lavabit.com> +# Copyright (C) 2009-2013 Roman Zimbelmann <hut@lepus.uberspace.de> # This software is distributed under the terms of the GNU GPL version 3. import re @@ -68,6 +68,9 @@ class File(FileSystemObject): return False if not self.accessible: return False + 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: return True |