mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
linux/text: fix invalid span creation (#8286)
This fixes a crash when showing completions. Release Notes: - N/A
This commit is contained in:
parent
aef299be3d
commit
9b44ba9382
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ impl LinuxTextSystemState {
|
||||||
let font = &self.fonts[run.font_id.0];
|
let font = &self.fonts[run.font_id.0];
|
||||||
let font = self.font_system.db().face(font.id()).unwrap();
|
let font = self.font_system.db().face(font.id()).unwrap();
|
||||||
attrs_list.add_span(
|
attrs_list.add_span(
|
||||||
offs..run.len,
|
offs..offs + run.len,
|
||||||
Attrs::new()
|
Attrs::new()
|
||||||
.family(Family::Name(&font.families.first().unwrap().0))
|
.family(Family::Name(&font.families.first().unwrap().0))
|
||||||
.stretch(font.stretch)
|
.stretch(font.stretch)
|
||||||
|
|
Loading…
Reference in a new issue