diff --git a/src/floating_text.rs b/src/floating_text.rs index 7e041ae9..482a8822 100644 --- a/src/floating_text.rs +++ b/src/floating_text.rs @@ -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::>() .chunks(inner_area.width as usize)