X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=916f3f7501a73c632d7b78a833e03460e6255fdd;hb=refs%2Fheads%2Fnewpc92timings;hp=88ffb92787589a527ebf03f51983b053de466bdb;hpb=e69a98ce612592a78aca2a3ac4e2388a06059955;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 88ffb927..916f3f75 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -10,7 +10,7 @@ # # Copyright (c) 1999 Dirk Koopman G1TLH # -# $Id$ +# # require 5.004; @@ -340,7 +340,7 @@ sub rec_stdin } elsif ($r eq KEY_PPAGE || $r eq "\032") { if ($spos > 0) { my ($i, $l); - for ($i = 0; $i <= $pagel-1 && $spos >= 0; ) { + for ($i = 0; $i < $pagel-1 && $spos >= 0; ) { $l = measure($shistory[$spos]); $i += $l; $spos-- if $i <= $pagel;