pr: fix so that LAST_PAGE is honored with -T
commit1f93c9633997b8843e9b30ad29fe3b2631cf3655
authorPádraig Brady <P@draigBrady.com>
Tue, 23 Aug 2011 23:09:30 +0000 (24 00:09 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 23 Aug 2011 23:21:17 +0000 (24 00:21 +0100)
tree81326b6a5d93ab8b14e518abbc01c3a51d26ceb9
parent423b079f5324b9097d487e752b71a8399b970ba9
pr: fix so that LAST_PAGE is honored with -T

Ever since the LAST_PAGE functionality was added
in commit ed0923a1, 1996-12-05,
"Apply big patch (patch-20) from Roland Huebner"
it was ignored when -t or -T were specified or
when -l <= 10.

* src/pr.c (print_page): Increment the current page here.
(print_header): Don't increment the current page here.
* tests/pr/pr-tests: Add a test case.
* NEWS: Mention the fix

Reported at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9347
NEWS
src/pr.c
tests/pr/pr-tests