From 2367a62e4c64e727d4487cd1a19ec8047d3871f4 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 8 Jan 2006 22:36:08 +0000 Subject: Changed wcswidth(&c, 1) to wcwidth(c). --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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--) { -- cgit 1.4.1