projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix counting backwards into a leapyear
[spider.git]
/
perl
/
console.pl
diff --git
a/perl/console.pl
b/perl/console.pl
index f4c4a85fa37731c163379cdf3b21b9b84d609b35..bc3ca0d67bcb41163bd539e953e5f469daef960b 100755
(executable)
--- a/
perl/console.pl
+++ b/
perl/console.pl
@@
-334,7
+334,7
@@
sub rec_stdin
} elsif ($r eq KEY_PPAGE || $r eq "\032") {
if ($spos > 0) {
my ($i, $l);
- for ($i = 0; $i <= $pagel && $spos >= 0; ) {
+ for ($i = 0; $i <= $pagel
-1
&& $spos >= 0; ) {
$l = measure($shistory[$spos]);
$i += $l;
$spos-- if $i <= $pagel;