mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-25 12:59:45 +00:00
fix: Render empty lines
This commit is contained in:
parent
e9db67b2fa
commit
226360081a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user