mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
only test presentation VS15/16 if directly adjacent to codepoint
This commit is contained in:
@ -177,8 +177,10 @@ pub const RunIterator = struct {
|
|||||||
|
|
||||||
// Determine the presentation format for this glyph.
|
// Determine the presentation format for this glyph.
|
||||||
const presentation: ?Presentation = if (cell.attrs.grapheme) p: {
|
const presentation: ?Presentation = if (cell.attrs.grapheme) p: {
|
||||||
|
// We only check the FIRST codepoint because I believe the
|
||||||
|
// presentation format must be directly adjacent to the codepoint.
|
||||||
var it = self.row.codepointIterator(j);
|
var it = self.row.codepointIterator(j);
|
||||||
while (it.next()) |cp| {
|
if (it.next()) |cp| {
|
||||||
if (cp == 0xFE0E) break :p Presentation.text;
|
if (cp == 0xFE0E) break :p Presentation.text;
|
||||||
if (cp == 0xFE0F) break :p Presentation.emoji;
|
if (cp == 0xFE0F) break :p Presentation.emoji;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user