mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-09 16:00:35 +00:00
Fix breakline problems
This commit is contained in:
parent
4c42803ed6
commit
c8769553f9
@ -55,8 +55,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 {
|
||||||
let formatted = format!("{}\n", line).to_string();
|
rustbox.print(0, index, rustbox::RB_NORMAL, Color::White, Color::Black, line);
|
||||||
rustbox.print(0, index, rustbox::RB_NORMAL, Color::White, Color::Black, formatted.as_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user