1
0
mirror of https://github.com/mfontanini/presenterm.git synced 2026-09-01 23:33:21 -06:00

fix: Restore proper theme and formatting in exports

which was previously broken due to the change in behavior when merging
text styles.
This commit is contained in:
Andreas Hartmann 2026-04-30 15:47:22 +02:00
parent 828d0956fa
commit 7c661be152
No known key found for this signature in database
GPG Key ID: E6720298A85FBB5B

View File

@ -143,7 +143,7 @@ impl VirtualTerminal {
}
fn print_text(&mut self, content: &str, style: &TextStyle) -> io::Result<()> {
let style = style.merged(&TextStyle::default().colors(self.colors));
let style = TextStyle::default().colors(self.colors).merged(style);
for c in content.chars() {
let Some(cell) = self.current_cell_mut() else {
continue;