diff options
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fold.c b/src/fold.c index 9f9f0c8c5..eda7e039f 100644 --- a/src/fold.c +++ b/src/fold.c @@ -254,6 +254,14 @@ fold_file (filename, width) goto rescan; } } + else + { + if (offset_out == 0) + { + line_out[offset_out++] = c; + continue; + } + } line_out[offset_out++] = '\n'; fwrite (line_out, sizeof (char), offset_out, stdout); column = offset_out = 0; |