mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-26 13:29: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()
|
.iter()
|
||||||
.skip(self.scroll)
|
.skip(self.scroll)
|
||||||
.flat_map(|line| {
|
.flat_map(|line| {
|
||||||
|
if line.is_empty() {
|
||||||
|
return vec![String::new()];
|
||||||
|
}
|
||||||
line.chars()
|
line.chars()
|
||||||
.collect::<Vec<char>>()
|
.collect::<Vec<char>>()
|
||||||
.chunks(inner_area.width as usize)
|
.chunks(inner_area.width as usize)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user