From 226360081abdadcf8ab83e59712e9462ee895bb7 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:13:48 -0700 Subject: [PATCH] fix: Render empty lines --- src/floating_text.rs | 3 +++ 1 file changed, 3 insertions(+) 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)