We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 985f053 commit e69d621Copy full SHA for e69d621
1 file changed
src/style.rs
@@ -463,7 +463,11 @@ impl WideElement<'_> {
463
buf: &mut String,
464
width: u16,
465
) -> String {
466
- let left = (width as usize).saturating_sub(measure_text_width(&cur.replace('\x00', "")));
+ let left =
467
+ (width as usize).saturating_sub(match cur.lines().find(|line| line.contains('\x00')) {
468
+ Some(line) => measure_text_width(&line.replace('\x00', "")),
469
+ None => measure_text_width(&cur),
470
+ });
471
match self {
472
Self::Bar { alt_style } => cur.replace(
473
'\x00',
0 commit comments