summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-11 02:52:50 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-11 02:52:50 +0800
commitfb2a62f3fe337d55d555d56b819ac6c1f16cfb75 (patch)
treeaa67f3471dc5cf3b5d9d26ed8f51ffd2b7fdfb49
parentc0726812e722775ab48099e6a38f5199ab0bdee3 (diff)
downloadpttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.tar
pttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.tar.gz
pttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.tar.bz2
pttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.tar.lz
pttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.tar.xz
pttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.tar.zst
pttbbs-fb2a62f3fe337d55d555d56b819ac6c1f16cfb75.zip
scroll fix
git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.fpg@2126 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/edit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 446a91af..3268bde1 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -2498,13 +2498,17 @@ vedit(char *fpath, int saveheader, int *islocal)
rscroll();
}
}
- if (curr_window_line == b_lines) {
+ if (curr_window_line == b_lines ||
+ (phone_mode && curr_window_line == b_lines - 1)) {
curr_window_line = t_lines - 2;
if (!top_of_win->next)
indigestion(7);
else {
top_of_win = top_of_win->next;
- move(b_lines, 0);
+ if(phone_mode)
+ move(b_lines-1, 0);
+ else
+ move(b_lines, 0);
clrtoeol();
scroll();
}