summaryrefslogtreecommitdiff
path: root/lib/mbswidth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mbswidth.c')
-rw-r--r--lib/mbswidth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mbswidth.c b/lib/mbswidth.c
index 48da6639d..072695172 100644
--- a/lib/mbswidth.c
+++ b/lib/mbswidth.c
@@ -51,7 +51,7 @@
# include <wctype.h>
#endif
#if !defined iswcntrl && !HAVE_ISWCNTRL
-# define iswcntrl(wc) 0
+# define iswcntrl(wc) (((wc) & ~0x1f) == 0 || (wc) == 0x7f)
#endif
#ifndef mbsinit