mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
vt: cache grapheme cluster width in composed struct
* Use regular wcswidth() to calculate the width * Explicitly set to ‘2’ if we see a emoji variant selector * Cache the result in the composed struct
This commit is contained in:
parent
b9ef703eb1
commit
0a9531ac6c
3 changed files with 11 additions and 12 deletions
|
|
@ -87,6 +87,7 @@ struct damage {
|
|||
struct composed {
|
||||
wchar_t chars[20];
|
||||
uint8_t count;
|
||||
int width;
|
||||
};
|
||||
|
||||
struct row_uri_range {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue