diff options
Diffstat (limited to 'src/iso2022.c')
-rw-r--r-- | src/iso2022.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/iso2022.c b/src/iso2022.c index c9ae28e..3f2b095 100644 --- a/src/iso2022.c +++ b/src/iso2022.c @@ -399,6 +399,13 @@ _vte_iso2022_ambiguous_width(struct _vte_iso2022_state *state) } } + /* + * Decide the ambiguous width according to the default region if + * current locale is UTF-8. + */ + if (strcmp (codeset, "utf8") == 0 && g_getenv("VTE_CJK_WIDTH") != NULL) + return _vte_iso2022_ambiguous_width_guess (); + /* Not in the list => not wide. */ return 1; } |