2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-10 13:10:54 +00:00

Show unknown types as binary (downloads)

This commit is contained in:
chris west 2020-05-23 11:40:26 -07:00
parent 7fb209206a
commit cd350b15b9

View File

@ -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