diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-28 02:29:44 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-28 02:29:44 +0800 |
commit | 34faf47ed3145b7c65edc3c88b6c81faf8937d93 (patch) | |
tree | 5c132b04e64ea6acac65493d2699be68adcdf84d /mbbsd | |
parent | 1f5f24abc427f95cb07e660f2d58ed9d39486e0c (diff) | |
download | pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.tar pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.tar.gz pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.tar.bz2 pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.tar.lz pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.tar.xz pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.tar.zst pttbbs-34faf47ed3145b7c65edc3c88b6c81faf8937d93.zip |
hosit for cursor
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1879 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 6 |
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 '$': |