mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 12:34:44 +02:00
Start work on allowing unlimited codepoints per cell
This is needed to properly support zero-width joiner based emoji sequences.
This commit is contained in:
@@ -224,6 +224,14 @@ typedef struct {
|
||||
} GPUCell;
|
||||
static_assert(sizeof(GPUCell) == 20, "Fix the ordering of GPUCell");
|
||||
|
||||
typedef union CharOrIndex {
|
||||
struct {
|
||||
char_type ch_is_index: 1;
|
||||
char_type ch: sizeof(char_type) - 1;
|
||||
};
|
||||
char_type val;
|
||||
} CharOrIndex;
|
||||
|
||||
typedef struct {
|
||||
char_type ch;
|
||||
hyperlink_id_type hyperlink_id;
|
||||
|
||||
Reference in New Issue
Block a user