version 1.222.2.1, 2023/11/20 18:08:24 |
version 1.223, 2023/10/23 08:12:00 |
|
|
|
|
/* |
/* |
* Check if we need to combine characters. This could be zero width |
* Check if we need to combine characters. This could be zero width |
* (zet above), a modifier character (with an existing Unicode |
* (set above), a modifier character (with an existing Unicode |
* character) or a previous ZWJ. |
* character) or a previous ZWJ. |
*/ |
*/ |
if (!zero_width) { |
if (!zero_width) { |
|
|
} else if (!utf8_has_zwj(&last.data)) |
} else if (!utf8_has_zwj(&last.data)) |
return (0); |
return (0); |
} |
} |
|
|
/* Check if this combined character would be too long. */ |
|
if (last.data.size + ud->size > sizeof last.data.data) |
|
return (0); |
|
|
|
/* Combining; flush any pending output. */ |
/* Combining; flush any pending output. */ |
screen_write_collect_flush(ctx, 0, __func__); |
screen_write_collect_flush(ctx, 0, __func__); |