From 2cec7aae44579d9d8ca8c7e728f9eb6e2840d72f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 22 Apr 2008 15:08:04 +0000 Subject: 24861 (with tweaks): logic to use alternative wcwidth() if needed; slightly improve test for overwriting with combining characters. --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') 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; -- cgit v1.2.3