linux/text: fix invalid span creation (#8286)
This fixes a crash when showing completions. Release Notes: - N/A
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user