diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-25 11:44:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-25 11:44:35 +0000 |
| commit | 2eef28590ada5892f2cbe7f5bd8b997d25240892 (patch) | |
| tree | 4dce038269cbd99306f5c05e009e318660f78d24 /vt.c | |
| parent | changelog: add new ‘unreleased’ section (diff) | |
| parent | config: add tweak.grapheme-width-method=max (diff) | |
Merge branch 'grapheme-width-max'
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -792,6 +792,10 @@ action_utf8_print(struct terminal *term, wchar_t wc) composed != NULL ? composed->width : base_width; switch (term->conf->tweak.grapheme_width_method) { + case GRAPHEME_WIDTH_MAX: + new_cc->width = max(grapheme_width, width); + break; + case GRAPHEME_WIDTH_DOUBLE: if (unlikely(wc == 0xfe0f)) width = 2; |
