that cols_ready_to_print not be decremented when printing across.
The command `echo |pr -2ta' didn't terminate.
(print_page): Rewrite conditional with side effects in second conjunct
using nested if statements to make it clear that we do indeed want
those semantics.
q->status = CLOSED;
if (q->lines_stored == 0)
{
-#if 0
- if (cols_ready_to_print > 0)
+ if (cols_ready_to_print > 0 && !print_across_flag)
--cols_ready_to_print;
-#endif
q->lines_to_print = 0;
}
}
if (use_column_separator)
++separators_not_printed;
- if (--p->lines_to_print <= 0 && --cols_ready_to_print <= 0)
- break;
+ --p->lines_to_print;
+ if (p->lines_to_print <= 0)
+ {
+ --cols_ready_to_print;
+ if (cols_ready_to_print <= 0)
+ break;
+ }
}
}