diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-12-15 16:50:53 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-12-15 16:50:53 +0800 |
commit | 2fba7bc2ff8950d79b8c98674f8233236e2696c3 (patch) | |
tree | fab4c108373aca47a16da67812ac85d9edc21b6b /mbbsd | |
parent | c21e9c756e44551834565b5f63fb30ee781e3268 (diff) | |
download | pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.tar pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.tar.gz pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.tar.bz2 pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.tar.lz pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.tar.xz pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.tar.zst pttbbs-2fba7bc2ff8950d79b8c98674f8233236e2696c3.zip |
Key "UP" at the first entry of article list work as key "END"
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3256 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index 98b00398..d20a0676 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -725,8 +725,13 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem, case 'p': case 'k': case KEY_UP: - new_ln = locmem->crs_ln - 1; - new_top = p_lines - 2; + if (locmem->crs_ln <= 1) { + new_ln = last_line; + new_top = p_lines-1; + } else { + new_ln = locmem->crs_ln - 1; + new_top = p_lines - 2; + } break; case 'n': |