From 288f220f875d4e4f00e86dd809c04aa805b49991 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Tue, 13 Nov 2018 00:14:15 +0100 Subject: [PATCH] fix width of byte codepoints --- src/perl/textui/TextUI.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perl/textui/TextUI.xs b/src/perl/textui/TextUI.xs index 35ea5759..9f4fd0b0 100644 --- a/src/perl/textui/TextUI.xs +++ b/src/perl/textui/TextUI.xs @@ -220,7 +220,7 @@ CODE: } else if (term_type != TERM_TYPE_BIG5 || c[1] == '\0' || !is_big5((unsigned char) c[0], (unsigned char) c[1])) { - RETVAL = 1; + RETVAL = i_wcwidth((unsigned char) *c); } else { RETVAL = 2; }