diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-27 18:07:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-24 15:30:45 +0000 |
| commit | 0a9531ac6caff2ad6abfbb804ec27cade4a92e7a (patch) | |
| tree | 33cdf629fe3e99d1e2afe3cc181b100af8fb9a67 /terminal.h | |
| parent | wip: grapheme shaping (diff) | |
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
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -87,6 +87,7 @@ struct damage { struct composed { wchar_t chars[20]; uint8_t count; + int width; }; struct row_uri_range { |
