diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-08 22:36:08 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-08 22:36:08 +0000 |
commit | 2367a62e4c64e727d4487cd1a19ec8047d3871f4 (patch) | |
tree | 169eef89a9fd39ee87416c3a1080cf05a083d655 | |
parent | e377b38ebf44c94ba89600de412b8ec608390f9b (diff) | |
download | zsh-2367a62e4c64e727d4487cd1a19ec8047d3871f4.tar.gz zsh-2367a62e4c64e727d4487cd1a19ec8047d3871f4.tar.xz zsh-2367a62e4c64e727d4487cd1a19ec8047d3871f4.zip |
Changed wcswidth(&c, 1) to wcwidth(c).
-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--) { |