1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

24861 (with tweaks): logic to use alternative wcwidth() if needed;

slightly improve test for overwriting with combining characters.
This commit is contained in:
Peter Stephenson 2008-04-22 15:08:04 +00:00
parent a58d02fd2e
commit 2cec7aae44
12 changed files with 434 additions and 27 deletions

View file

@ -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;