more fiddling with magiedit

This commit is contained in:
Andrew Pamment 2017-03-30 13:50:47 +10:00
parent 1036e8d0eb
commit ba2597d341

View File

@ -573,11 +573,6 @@ char *message_editor() {
od_set_cursor(i - top_of_screen + 3, 1);
od_printf("%s", line);
od_clr_line();
for (i=position_y;i<body_line_count && i - top_of_screen < 20;i++) {
od_set_cursor(i - top_of_screen + 4, 1);
od_printf("%s", body_lines[i]);
od_clr_line();
}
}
old_top_of_screen = top_of_screen;
@ -592,6 +587,11 @@ char *message_editor() {
od_clr_line();
od_set_cursor(position_y - top_of_screen + 3, 1);
}
for (i=position_y;i<body_line_count && i - top_of_screen < 20;i++) {
od_set_cursor(i - top_of_screen + 4, 1);
od_printf("%s", body_lines[i]);
od_clr_line();
}
}
} else {
if (ch.chKeyPress == '\b') {