aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-01 06:00:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-01 06:00:23 +0000
commit5138f022146e447d8bb0be56a06e9065b35b6489 (patch)
treef3aebec4807e101387eb07451451d13d2a925357 /vt.c
parentconfig: add tweak.grapheme-width-method=wcswidth|at-most-2 (diff)
config: rename at-most-2 (value for grapheme-width-method) to double-width
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index 6ef2b782..b9a4f4b0 100644
--- a/vt.c
+++ b/vt.c
@@ -768,7 +768,7 @@ 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_2:
+ case GRAPHEME_WIDTH_DOUBLE:
if (unlikely(wc == 0xfe0f))
width = 2;
new_cc->width = min(grapheme_width + width, 2);