diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 4fb52cff5..939fa403e 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -375,7 +375,7 @@ wcs_nicechar(wchar_t c, size_t *widthp, char **swidep) } if (widthp) - *widthp = (s - buf) + wcswidth(&c, 1); + *widthp = (s - buf) + wcwidth(c); if (swidep) *swidep = s; for (mbptr = mbstr; ret; s++, mbptr++, ret--) { |