change stupid alias fro 'fo*'
authorminima <minima>
Tue, 17 Aug 2004 19:14:57 +0000 (19:14 +0000)
committerminima <minima>
Tue, 17 Aug 2004 19:14:57 +0000 (19:14 +0000)
change page handling a bit in console.pl

Changes
cmd/Aliases
perl/console.pl

diff --git a/Changes b/Changes
index 35999e5afddb197ad29aaced3bebe8e6e4989b95..2dc36b085e9843a293ca59b518296b803d7c50bd 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+17Aug04=======================================================================
+1. change 'fo' alias in Aliases 
 31Jul04=======================================================================
 1. add a load of .cvsignore lines to reduce the updating noise
 30Jul04=======================================================================
index 53e7651e365bff5d64ddc86d3c3ee7900b51a3b8..dd9774d87afd660872a198d4ebe0f94f2a830bdf 100644 (file)
@@ -59,7 +59,7 @@ package CmdAlias;
          '^expun?g?e?$', 'kill expunge', 'kill expunge',
        ],
        'f' => [
-       '^fo\w*$', 'apropos forward', 'apropos',
+       '^for?w?a?r?d?$', 'apropos forward', 'apropos',
        ],
        'g' => [
        ],
index f4c4a85fa37731c163379cdf3b21b9b84d609b35..bc3ca0d67bcb41163bd539e953e5f469daef960b 100755 (executable)
@@ -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;