diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-30 22:16:23 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-30 22:16:23 -0400 |
commit | 134f485b8ec71f016afdefb2a33f2c6a6bc1f133 (patch) | |
tree | 2b08f3401732654817cfe45f669545984dfab07b /src/preview.rs | |
parent | 70c8251b479e745edeb080058c1b95bf677684e1 (diff) |
stop previewing because of a crash relating previewing non text files
Diffstat (limited to 'src/preview.rs')
-rw-r--r-- | src/preview.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preview.rs b/src/preview.rs index b452616..d160a9b 100644 --- a/src/preview.rs +++ b/src/preview.rs @@ -26,7 +26,7 @@ pub fn preview_entry(curr_tab: &mut JoshutoTab, win: &JoshutoPanel, config_t: &J preview_directory(&mut curr_tab.history, s.path.as_path(), win, config_t); } else if s.metadata.file_type.is_file() { if s.metadata.len <= config_t.max_preview_size { - preview_file(s, win); + // preview_file(s, win); } else { ui::wprint_err(win, "File size exceeds max preview size"); } |