summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/read.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index b771ccb9..e92e6b48 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -533,12 +533,14 @@ i_read_key(onekey_t * rcmdlist, keeploc_t * locmem,
case KEY_PGDN:
case 'N':
case Ctrl('F'):
- new_ln = locmem->crs_ln + p_lines;
+ new_ln = locmem->top_ln + p_lines;
+ new_top = 0;
break;
case KEY_PGUP:
case Ctrl('B'):
case 'P':
- new_ln = locmem->crs_ln - p_lines;
+ new_ln = locmem->top_ln - p_lines;
+ new_top = 0;
break;
case KEY_END:
case '$':