aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/linestack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/linestack.c b/lib/linestack.c
index eef790b5..e717a9bb 100644
--- a/lib/linestack.c
+++ b/lib/linestack.c
@@ -106,7 +106,8 @@ int crunch_str(char **str, int width, FILE *out, char *escmore,
}
col = width-columns;
if (col<1) break;
- col = escout(out, col, wc);
+ if (escout) col = escout(out, col, wc);
+ else if (out) fwrite(end, bytes, 1, out);
}
*str = end;