From 90a727dd763f74e319f927a31b3b67b5fdb96f68 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Mon, 25 May 2026 13:52:10 -0600 Subject: [PATCH] fix: avoid unnecessary shape-until-cursor at start-up --- src/terminal.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/terminal.rs b/src/terminal.rs index 81b9f504..f9617112 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -21,8 +21,7 @@ use cosmic::{ widget::{pane_grid, segmented_button}, }; use cosmic_text::{ - Attrs, AttrsList, Buffer, BufferLine, CacheKeyFlags, Family, LineEnding, Metrics, Shaping, - Weight, Wrap, + Attrs, AttrsList, Buffer, BufferLine, CacheKeyFlags, Family, LineEnding, Shaping, Weight, Wrap, }; use indexmap::IndexSet; use std::{ @@ -284,7 +283,7 @@ impl Terminal { let bold_font_weight = app_config.bold_font_weight; let use_bright_bold = app_config.use_bright_bold; - let metrics = Metrics::new(14.0, 21.0); + let metrics = app_config.metrics(0); let default_bg = convert_color(&colors, Color::Named(NamedColor::Background)); let default_fg = convert_color(&colors, Color::Named(NamedColor::Foreground)); @@ -640,7 +639,7 @@ impl Terminal { update_cell_size = true; } - if self.bold_font_weight.0 != config.font_weight { + if self.bold_font_weight.0 != config.bold_font_weight { self.bold_font_weight = Weight(config.bold_font_weight); update_cell_size = true; }