Show unknown types as binary (downloads)

pull/22/head
chris west 4 years ago
parent 7fb209206a
commit cd350b15b9

@ -917,7 +917,7 @@ pub fn parse_line(start: usize, raw: &str) -> Option<Line> {
} else { } else {
end end
}; };
let typ = Type::from(line.chars().nth(0)?)?; let typ = Type::from(line.chars().next()?).unwrap_or(Type::Binary);
let mut truncated_len = if text_end - start > MAX_COLS { let mut truncated_len = if text_end - start > MAX_COLS {
MAX_COLS + 1 MAX_COLS + 1

Loading…
Cancel
Save