summaryrefslogtreecommitdiffstats
path: root/text-utils/colcrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/colcrt.c')
-rw-r--r--text-utils/colcrt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/text-utils/colcrt.c b/text-utils/colcrt.c
index cf630c404..3cf25cbbe 100644
--- a/text-utils/colcrt.c
+++ b/text-utils/colcrt.c
@@ -201,6 +201,8 @@ void colcrt(FILE *f) {
/* fallthrough */
default:
w = wcwidth(c);
+ if (w < 0)
+ continue;
if (outcol + w > PAGE_ARRAY_COLS) {
outcol++;
continue;