terminal emulator
git clone https://git.lucas.co/cce-terminal.git
Build TextAttrs with ..Default::default()
cce-ui's TextAttrs gains a `stretch` field; ending the literal in
`..Default::default()` keeps this crate compiling against it and
against the currently pinned cce-ui alike, so no repin is needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
index 16cf394..88f7ef4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1190,7 +1190,7 @@ impl Application for TerminalApp {
[run.fg.r, run.fg.g, run.fg.b],
Some(font.clone()),
Some(bounds),
- TextAttrs { italic: run.italic, weight: run.bold.then_some(700) },
+ TextAttrs { italic: run.italic, weight: run.bold.then_some(700), ..Default::default() },
);
}
for (row, start, end, rgb, is_strike) in deco_runs {