fix: Render empty lines

This commit is contained in:
Liam 2024-08-26 15:13:48 -07:00
parent e9db67b2fa
commit 226360081a
No known key found for this signature in database

View File

@ -69,6 +69,9 @@ impl FloatContent for FloatingText {
.iter()
.skip(self.scroll)
.flat_map(|line| {
if line.is_empty() {
return vec![String::new()];
}
line.chars()
.collect::<Vec<char>>()
.chunks(inner_area.width as usize)