Fix Pager::print_string() with empty string
parent
5761f854e2
commit
776dc107c2
|
@ -323,7 +323,6 @@ impl Pager {
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let pager_filter: Option<&String> = if let Some(context) = context {
|
let pager_filter: Option<&String> = if let Some(context) = context {
|
||||||
context.settings.pager.filter.as_ref()
|
context.settings.pager.filter.as_ref()
|
||||||
//let format_flowed: bool = context.settings.pager.format_flowed;
|
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
@ -366,7 +365,6 @@ impl Pager {
|
||||||
} else {
|
} else {
|
||||||
CellBuffer::new(width, height, Cell::with_char(' '))
|
CellBuffer::new(width, height, Cell::with_char(' '))
|
||||||
};
|
};
|
||||||
//interpret_format_flowed(&text);
|
|
||||||
Pager::print_string(&mut content, lines);
|
Pager::print_string(&mut content, lines);
|
||||||
content
|
content
|
||||||
};
|
};
|
||||||
|
@ -426,7 +424,7 @@ impl Pager {
|
||||||
Color::Default,
|
Color::Default,
|
||||||
Color::Default,
|
Color::Default,
|
||||||
Attr::Default,
|
Attr::Default,
|
||||||
((0, i), (width - 1, i)),
|
((0, i), (width.saturating_sub(1), i)),
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue