don't fu rendering when file is inaccessible

This commit is contained in:
rabite 2019-02-26 10:36:57 +01:00
parent b9a873094a
commit bdbe8e07e3
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ where
fn render_line(&self, file: &File) -> String {
let name = &file.name;
let (size, unit) = file.calculate_size().unwrap();
let (size, unit) = file.calculate_size().unwrap_or((0, "".to_string()));
let selection_gap = " ".to_string();
let (name, selection_color) = if file.is_selected() {