Bugfix to EMAIL.SYSTEM 'B' (page up) command

This commit is contained in:
Bobbi Webber-Manners 2020-06-25 14:30:10 -04:00
parent b3b556b440
commit 03047d9fce

View File

@ -218,7 +218,7 @@ retry1:
break;
case 'B':
case 'b':
if (pos < (uint32_t)(SCROLLBACK)) {
if (pos < h->skipbytes + (uint32_t)(SCROLLBACK)) {
pos = h->skipbytes;
fseek(fp, pos, SEEK_SET);
goto restart;
@ -259,7 +259,7 @@ retry2:
switch (c) {
case 'B':
case 'b':
if (pos < (uint32_t)(SCROLLBACK)) {
if (pos < h->skipbytes + (uint32_t)(SCROLLBACK)) {
pos = h->skipbytes;
fseek(fp, pos, SEEK_SET);
goto restart;