mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-31 02:32:13 +00:00
font: compare font Index packed structs directly
Packed structs can be compared directly now, no need to convert them to an int anymore.
This commit is contained in:
@@ -247,7 +247,7 @@ pub const RunIterator = struct {
|
||||
if (j == self.i) current_font = font_info.idx;
|
||||
|
||||
// If our fonts are not equal, then we're done with our run.
|
||||
if (font_info.idx.int() != current_font.int()) break;
|
||||
if (font_info.idx != current_font) break;
|
||||
|
||||
// If we're a fallback character, add that and continue; we
|
||||
// don't want to add the entire grapheme.
|
||||
|
||||
Reference in New Issue
Block a user