Fix breakline bug, again

This commit is contained in:
Ferran Basora 2019-03-12 22:28:58 +00:00
parent 45d15bf03a
commit 1a6cc7a596

View File

@ -66,7 +66,7 @@ impl<'a> View<'a> {
let clean = line.trim_end_matches(|c: char| c.is_whitespace()); let clean = line.trim_end_matches(|c: char| c.is_whitespace());
if clean.len() > 0 { if clean.len() > 0 {
rustbox.print(0, index, rustbox::RB_NORMAL, Color::White, Color::Black, format!("{}\n", line).to_string().as_str()); rustbox.print(0, index, rustbox::RB_NORMAL, Color::White, Color::Black, line);
} }
} }