X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=ceac24e278890d1275fa6f904761d1993355061e;hb=a89e605f6679f19b1365061bad1ba93b36293814;hp=a0e4f1087a676825397a46a0e2a0fb8cb19b9ff2;hpb=a5bd8a3c8ddca2ceb8ec805465d1b9b53f6812da;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index a0e4f108..ceac24e2 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -137,10 +137,9 @@ sub measure # display the top screen sub show_screen { - if ($spos >= @shistory - 1) { + if ($spos == @shistory - 1) { # if we really are scrolling thru at the end of the history - $spos = @shistory - 1 if $spos >= @shistory; my $line = $shistory[$spos]; $top->addstr("\n") if $spos > 0; setattr($line);