fix: too much padding for small frames (#3616)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-01-21 11:33:00 -08:00
1 parent 23d9178154
commit d42b1d5146
1 file changed
+1 -4
+1 -4
View File
@@ -1003,10 +1003,7 @@ impl Output {
// Create the ansi -> raw string line with a width of either the viewport width or the max width
let line_length = line.styled_graphemes(Style::default()).count();
lines.push(
AnsiStringLine::new(line_length.max(VIEWPORT_MAX_WIDTH.into()) as _)
.render(&line),
);
lines.push(AnsiStringLine::new(line_length as _).render(&line));
}
}