aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-27 18:07:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-24 15:30:45 +0000
commit0a9531ac6caff2ad6abfbb804ec27cade4a92e7a (patch)
tree33cdf629fe3e99d1e2afe3cc181b100af8fb9a67 /terminal.h
parentwip: 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 45c6c98b..83406f41 100644
--- a/terminal.h
+++ b/terminal.h
@@ -87,6 +87,7 @@ struct damage {
struct composed {
wchar_t chars[20];
uint8_t count;
+ int width;
};
struct row_uri_range {