diff options
author | Jim Meyering <jim@meyering.net> | 1998-06-27 23:43:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-06-27 23:43:40 +0000 |
commit | 182a1780acb347c5ee4a6cce9304d5c87a5b59c1 (patch) | |
tree | 74b947ad76d370ec9214a9009af08bf01a1866e5 /src | |
parent | cf430d3590040f03e580847bfcc802dfdfa72f44 (diff) | |
download | coreutils-182a1780acb347c5ee4a6cce9304d5c87a5b59c1.tar.xz |
(print_page): Break out of loop before double space test
if cols_ready_to_print is zero.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1584,7 +1584,10 @@ print_page (void) --lines_left_on_page; } - if (double_space && pv && extremities) + if (cols_ready_to_print () <= 0 && !extremities) + break; + + if (double_space && pv) { putchar ('\n'); --lines_left_on_page; |