From 34faf47ed3145b7c65edc3c88b6c81faf8937d93 Mon Sep 17 00:00:00 2001 From: ptt Date: Tue, 27 Apr 2004 18:29:44 +0000 Subject: hosit for cursor git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1879 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/read.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mbbsd') 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 '$': -- cgit v1.2.3