about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-01-08 22:36:08 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-01-08 22:36:08 +0000
commit2367a62e4c64e727d4487cd1a19ec8047d3871f4 (patch)
tree169eef89a9fd39ee87416c3a1080cf05a083d655 /Src
parente377b38ebf44c94ba89600de412b8ec608390f9b (diff)
downloadzsh-2367a62e4c64e727d4487cd1a19ec8047d3871f4.tar.gz
zsh-2367a62e4c64e727d4487cd1a19ec8047d3871f4.tar.xz
zsh-2367a62e4c64e727d4487cd1a19ec8047d3871f4.zip
Changed wcswidth(&c, 1) to wcwidth(c).
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
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--) {