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:
parent
a58d02fd2e
commit
2cec7aae44
12 changed files with 434 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue