]> dxcluster.net Git - spider.git/commitdiff
fixed console back again
authordjk <djk>
Mon, 1 Nov 1999 11:48:29 +0000 (11:48 +0000)
committerdjk <djk>
Mon, 1 Nov 1999 11:48:29 +0000 (11:48 +0000)
perl/console.pl

index a0e4f1087a676825397a46a0e2a0fb8cb19b9ff2..ceac24e278890d1275fa6f904761d1993355061e 100755 (executable)
@@ -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);