config: rename at-most-2 (value for grapheme-width-method) to double-width

This commit is contained in:
Daniel Eklöf 2021-07-01 08:00:23 +02:00
parent 9817e44c32
commit 5138f02214
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 10 additions and 10 deletions

2
vt.c
View file

@ -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);