From 7de3ee3650692fcd074f03ec300f7b3978b34e6d Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Wed, 18 Nov 2026 22:54:55 +0000 Subject: [PATCH] fu-chrome: list trial slices the label by the section byte offsets --- crates/ui-widgets/tests/it/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-widgets/tests/it/list.rs b/crates/ui-widgets/tests/it/list.rs index e9855ef4d..258a767fa 100644 --- a/crates/ui-widgets/tests/it/list.rs +++ b/crates/ui-widgets/tests/it/list.rs @@ -998,7 +998,7 @@ fn a_row_labelled_from_spans_highlights_only_its_match_and_is_named_by_the_joine .sections .iter() .filter(|section| section.format.background != egui::Color32::TRANSPARENT) - .filter_map(|section| galley.job.text.get(section.byte_range.clone())) + .filter_map(|section| galley.job.text.get(section.byte_range.start.0..section.byte_range.end.0)) .collect(); assert_eq!(marked, ["harbour"], "only the match is drawn on the highlight"); }