mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-01-17 17:30:41 +00:00
Bugfix to EMAIL.SYSTEM 'B' (page up) command
This commit is contained in:
parent
b3b556b440
commit
03047d9fce
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user