diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-22 15:08:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-22 15:08:04 +0000 |
commit | 2cec7aae44579d9d8ca8c7e728f9eb6e2840d72f (patch) | |
tree | a1725b9e9fba5cc1959b029167bd8137183cf092 /Src/builtin.c | |
parent | a58d02fd2e11f8453b912859b2f774b6cadace4c (diff) | |
download | zsh-2cec7aae44579d9d8ca8c7e728f9eb6e2840d72f.tar.gz zsh-2cec7aae44579d9d8ca8c7e728f9eb6e2840d72f.tar.xz zsh-2cec7aae44579d9d8ca8c7e728f9eb6e2840d72f.zip |
24861 (with tweaks): logic to use alternative wcwidth() if needed;
slightly improve test for overwriting with combining characters.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 75dd19d54..a9f181419 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3668,7 +3668,7 @@ bin_print(char *name, char **args, Options ops, int func) width += l; break; } - wcw = wcwidth(wc); + wcw = WCWIDTH(wc); /* treat unprintable as 0 */ if (wcw > 0) width += wcw; |