linux/text: fix invalid span creation (#8286)

Paul Berg created

This fixes a crash when showing completions.

Release Notes:

- N/A

Change summary

crates/gpui/src/platform/linux/text_system.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/gpui/src/platform/linux/text_system.rs 🔗

@@ -329,7 +329,7 @@ impl LinuxTextSystemState {
             let font = &self.fonts[run.font_id.0];
             let font = self.font_system.db().face(font.id()).unwrap();
             attrs_list.add_span(
-                offs..run.len,
+                offs..offs + run.len,
                 Attrs::new()
                     .family(Family::Name(&font.families.first().unwrap().0))
                     .stretch(font.stretch)