summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}