diff options
-rw-r--r-- | ranger/defaults/options.py | 3 | ||||
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py index 43129652..7c1be4a3 100644 --- a/ranger/defaults/options.py +++ b/ranger/defaults/options.py @@ -48,10 +48,9 @@ show_hidden_bookmarks = True colorscheme = 'default' # Preview files on the rightmost column? -# And collapse the last column if there is nothing to preview? +# And collapse (shrink) the last column if there is nothing to preview? preview_files = True preview_directories = True -max_filesize_for_preview = 300 * 1024 # 300kb collapse_preview = True # Save the console history on exit? diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index c0b60a2e..73f1e61e 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -179,9 +179,6 @@ class BrowserColumn(Pager): and not target.stat.st_mode & stat.S_IFIFO): return False - maxsize = self.settings.max_filesize_for_preview - if maxsize is not None and target.size > maxsize: - return False if PREVIEW_WHITELIST.search(target.basename): return True if PREVIEW_BLACKLIST.search(target.basename): |