git.lucas.co / cce-terminal
terminal emulator
git clone https://git.lucas.co/cce-terminal.git

commit0cb30e08be1a35ca2b4f20d67aeae350217c995a
parent9def764958
authorLucas Galante <lsgalante12@gmail.com>
date2026-10-06 21:54
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 {