summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-01-05 17:00:01 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-01-05 17:00:01 +0000
commitadeb02b884b9ce3892d89d5656126f00a14cc260 (patch)
tree7ec63e8a81f0306db399fa76764bb1477320b055
parent1b6a0453a5b71fd25c9c8f1fed452e0090a6320e (diff)
downloadmailutils-adeb02b884b9ce3892d89d5656126f00a14cc260.tar.gz
mailutils-adeb02b884b9ce3892d89d5656126f00a14cc260.tar.bz2
(mail_z): Fixed scrolling.
-rw-r--r--mail/z.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/z.c b/mail/z.c
index 5ef051639..ec4672659 100644
--- a/mail/z.c
+++ b/mail/z.c
@@ -110,7 +110,7 @@ mail_z (int argc, char **argv)
unsigned int pagelines = util_screen_lines();
unsigned int count;
int dir;
- int crs;
+ int crs, end;
if (z_parse_args(argc, argv, &count, &dir))
return 1;
@@ -184,11 +184,11 @@ mail_z (int argc, char **argv)
}
cursor = crs;
-
+ end = cursor + nlines - 1;
i = 0;
do
{
- int cnt = util_range_msg (crs, crs + nlines - 1,
+ int cnt = util_range_msg (crs, end,
MSG_NODELETED|MSG_SILENT, mail_from0, NULL);
if (cnt == 0)
break;

Return to:

Send suggestions and report system problems to the System administrator.